not_near: Difference between two numbers.

Description Usage Arguments Examples

View source: R/generic.R

Description

This is a safe way of comparing if two vectors of floating point numbers.

Usage

1
not_near(x, y, tol = 1e-08)

Arguments

x

Numeric vectors to compare

y

Numeric vectors to compare

tol

Tolerance of comparison.

Examples

1
not_near(sqrt(2), sqrt(3))

gilberto-sassi/power documentation built on July 17, 2020, 1:02 p.m.