Learn R Programming

arkhe (version 0.2.0)

predicate-trend: Numeric Trend Predicates

Description

Check numeric objects:

Usage

is_equal(x, tolerance = .Machine$double.eps^0.5, na.rm = TRUE)

is_increasing(x, na.rm = TRUE)

is_decreasing(x, na.rm = TRUE)

is_overlapping(x, y)

Arguments

x, y

A numeric object to be tested.

tolerance

A numeric scalar giving the tolerance to check within.

na.rm

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

Value

A logical scalar.

Details

is_equal checks for equality among all elements of a vector.

is_increasing and is_decreasing check if a sequence of numbers is monotonically increasing or decreasing, respectively.

is_overlapping checks if two data ranges overlap at all.

See Also

Other predicates: predicate-graph, predicate-matrix, predicate-numeric, predicate-scalar, predicate-type, predicate-utils