predicate-numeric {arkhe}R Documentation

Numeric Predicates

Description

Check numeric objects:

Usage

is_zero(x, na.rm = FALSE)

is_odd(x, na.rm = FALSE)

is_even(x, na.rm = FALSE)

is_positive(x, strict = FALSE, na.rm = FALSE)

is_negative(x, strict = FALSE, na.rm = FALSE)

is_whole(x, na.rm = FALSE, tolerance = .Machine$double.eps^0.5)

Arguments

x

A numeric object to be tested.

na.rm

A logical scalar: should missing values (including NaN) be omitted?

strict

A logical scalar: should strict inequality be used?

tolerance

A numeric scalar giving the tolerance to check within.

Value

A logical vector.

See Also

Other predicates: predicate-matrix, predicate-scalar, predicate-trend, predicate-type, predicate-utils


[Package arkhe version 1.0.0 Index]