Check numeric objects:
is_constant()
checks for equality among all elements of a vector.is_increasing()
andis_decreasing()
check if a sequence of numbers is monotonically increasing or decreasing, respectively.
Usage
is_constant(x, tolerance = sqrt(.Machine$double.eps), na.rm = FALSE)
is_increasing(x, na.rm = FALSE)
is_decreasing(x, na.rm = FALSE)
is_greater(x, y, strict = FALSE, na.rm = FALSE)
is_lower(x, y, strict = FALSE, na.rm = FALSE)
Value
A logical
scalar.
See also
Other predicates:
is_scalar
,
predicate-attributes
,
predicate-data
,
predicate-matrix
,
predicate-names
,
predicate-numeric
,
predicate-type