Check numeric objects:
is_zero()
checks if an object contains only zeros.is_odd()
andis_even()
check if a number is odd or even, respectively.is_positive()
andis_negative
check if an object contains only (strictly) positive or negative numbers.is_whole()
checks if an object only contains whole numbers.
Value
A logical
vector.
See also
Other predicates:
is_scalar
,
predicate-attributes
,
predicate-data
,
predicate-matrix
,
predicate-names
,
predicate-trend
,
predicate-type