predicate-numeric {arkhe} | R Documentation |
Numeric Predicates
Description
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.
Usage
is_zero(x, tolerance = sqrt(.Machine$double.eps), ...)
is_odd(x, ...)
is_even(x, ...)
is_positive(x, strict = FALSE, ...)
is_negative(x, strict = FALSE, ...)
is_whole(x, tolerance = sqrt(.Machine$double.eps), ...)
Arguments
x |
A |
tolerance |
A |
... |
Currently not used. |
strict |
A |
Value
A logical
vector.
See Also
Other predicates:
is_scalar
,
predicate-matrix
,
predicate-trend
,
predicate-type
,
predicate-utils
[Package arkhe version 1.7.0 Index]