Check numeric objects:
is_zero()
checks if an object contains only zeros.
is_odd()
and is_even()
check if a number is odd or even, respectively.
is_positive()
and is_negative
check if an object contains only
(strictly) positive or negative numbers.
is_whole()
checks if an object only contains whole numbers.
is_zero(x, ...)is_odd(x, ...)
is_even(x, ...)
is_positive(x, strict = FALSE, ...)
is_negative(x, strict = FALSE, ...)
is_whole(x, tolerance = .Machine$double.eps^0.5, ...)
A logical
vector.
Other predicates:
predicate-matrix
,
predicate-scalar
,
predicate-trend
,
predicate-type
,
predicate-utils