Check Numeric Values
assert_count(x, na.rm = FALSE, ...)assert_whole(x, na.rm = FALSE, ...)
assert_positive(x, na.rm = FALSE, ...)
assert_negative(x, na.rm = FALSE, ...)
assert_odd(x, na.rm = FALSE, ...)
assert_even(x, na.rm = FALSE, ...)
Throws an error, if any, and returns x
invisibly otherwise.
N. Frerebeau
Other validation methods:
check-attribute
,
check-data
,
check-matrix
,
check-numeric-comparison
,
check-numeric-trend
,
check-type
,
needs()
,
validate()