Skip to contents

Determines if a CTCAE grade value meets or exceeds a specified threshold.

Usage

threshold(x, grade_threshold)

Arguments

x

Numeric, the CTCAE grade value to check

grade_threshold

Numeric, the threshold value to compare against

Value

Logical, TRUE if the value equals the threshold, otherwise FALSE

Examples

threshold(3, grade_threshold = 3)  # TRUE
#> [1] TRUE
threshold(2, grade_threshold = 3)  # FALSE
#> [1] FALSE
threshold(NA, grade_threshold = 3) # FALSE
#> [1] FALSE