allequal: Determine Nearly-Equal Elements

allequalR Documentation

Determine Nearly-Equal Elements

Description

Determine nearly-equal elements and extract non-nearly-equal elements in a double vector.

Usage

unique_allequal(x, ...)

duplicated_allequal(x, ...)

Arguments

x

double vector

...

additional parameters of function outer_allequal

Value

Function duplicated_allequal returns a logical vector of the same length as the input vector, indicating whether each element is nearly-equal to any of the previous elements.

Function unique_allequal returns the non-nearly-equal elements in the input vector.

See Also

duplicated.default unique.default

Examples

x = c(.3, 1-.7, 0, .Machine$double.eps)
unique.default(x) # not desired
unique_allequal(x) # desired


QuantileGH documentation built on May 29, 2024, 12:14 p.m.