is_equal: Vectorized test for numeric equivalence. From Johan Larsson's...

Description Usage Arguments Value

View source: R/is_equal.R

Description

Vectorized test for numeric equivalence. From Johan Larsson's answer here https://stackoverflow.com/questions/35097815/vectorized-equality-testing

Usage

1
is_equal(x, y, tol = .Machine$double.eps^0.5)

Arguments

x

numeric vector

y

numeric vector

tol

tolerance. defaults to .Machine\$double.eps^0.5

Value

boolean vector


mcfreund/mfutils documentation built on Feb. 6, 2022, 4:57 a.m.