validate_cutpoint: Validate a Cutpoint Vector / Scheme

Description Usage Arguments Value Examples

View source: R/cutpoint_functions.R

Description

Ensures cutpoint values are:

Usage

1
validate_cutpoint(cutpoint_vector)

Arguments

cutpoint_vector

A Vector of Decimal Cutpoints Bounded Between 0 and 1

Value

Error if conditions are not met; otherwise silent

Examples

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)

EriqLaplus/OZAB documentation built on March 31, 2021, 4:35 a.m.