Number value predicates
num_val_predicates.RdThese 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:
all_duplicated(),
char_val_predicates,
iff_all_vals(),
is_curie(),
is_invariant(),
lgl_predicates,
obo_ID_predicates