Learn R Programming

ggfan (version 0.1.3)

.in_numeric: Find elements of one numeric vector in another.

Description

Find which elements of `a` are equal to at least one element in `b`, to within some tolerance tol.

Usage

.in_numeric(a, b, tol = 1e-06)

Arguments

a

The vector for which comparison are to be made

b

The vector to match against.

tol

The tolerance within which values are assumed to be the same.

Value

A vector of logical values the same length as `a` describing whether this vector element is close to at least one element in `b`