predicate-numeric {arkhe}R Documentation

Numeric Predicates

Description

Check numeric objects:

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 numeric object to be tested.

tolerance

A numeric scalar giving the tolerance to check within.

...

Currently not used.

strict

A logical scalar: should strict inequality be used?

Value

A logical vector.

See Also

Other predicates: is_scalar, predicate-attributes, predicate-data, predicate-matrix, predicate-names, predicate-trend, predicate-type


[Package arkhe version 1.9.0 Index]