-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
penalty = dplyr::case_when( value < 1 ~ penalty_value[1], # Penalty of penalty_value[1] when value < 1 value >= 1 & value <= 50 ~ penalty_value[2], value > 50 & value <= 200 ~ penalty_value[3], TRUE ~ 1 # Default case when none of the above conditions are met )
- Loading branch information
1 parent
1cbc020
commit 941fc7c
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters