near: near

Description Usage Arguments Value

View source: R/near.R

Description

A safe way to compare two floating point numbers. The function is based on the near function in the dplyr package.

Usage

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

Arguments

x, y

Numeric vectors to compare

tol

Tolerance of comparison (Default: sqrt of the machine precision)

Value

TRUE when x and y are near, otherwise FALSE


bips-hb/pvm documentation built on Dec. 14, 2020, 9:31 a.m.