This function applies a threshold to a given data set to determine if the grade
is above a specified level.
Usage
threshold(x, grade_threshold)
Arguments
- x
Numeric, the value to be checked against the threshold.
- grade_threshold
Numeric, the threshold value to compare against.
Value
Logical, TRUE if the value is above the threshold, otherwise FALSE.
Examples
threshold(5, grade_threshold = 4)
#> [1] 5
#> [1] FALSE
threshold(NA, grade_threshold = 4)
#> [1] FALSE