Number value predicates
num_val_predicates.Rd
These value predicates are designed to identify common values that appear in numeric vectors.
Usage
is_positive(x)
is_negative(x)
is_whole_number(x, tol = .Machine$double.eps)
is_scalar_whole_number(x, tol = .Machine$double.eps)
Details
is_whole_number()
should generally be used when a whole number is
desired (whether integer or double) instead of base::is.integer or the
rlang::is_integer family because those test the data type no the value.
See also
Other value predicates:
char_val_predicates
,
is_invariant()
Other predicates:
char_val_predicates
,
is_curie()
,
is_invariant()
,
lgl_predicates
,
obo_ID_predicates