Description Usage Arguments Value Examples
View source: R/cutpoint_functions.R
Ensures cutpoint values are:
Strictly Greater Than Zero
Strictly Less Than One
Distinct
Monotonically Increasing
1 | validate_cutpoint(cutpoint_vector)
|
cutpoint_vector |
A Vector of Decimal Cutpoints Bounded Between 0 and 1 |
Error if conditions are not met; otherwise silent
1 2 3 4 5 | ## Not run:
validate_cutpoint(c(0.5)) # Okay - Remains Silent
validate_cutpoint(c(0.6, 0.4)) # Not Okay - Stops with an Error
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.