numeq: test equality between numeric values with some tolerance

View source: R/package.R

numeqR Documentation

test equality between numeric values with some tolerance

Description

two numerical values may be slightly off in their decimal precision. These may be considered equivalent values but the '==' operator will return FALSE. This tests for equivalence of two values with some lower tolerance limit

Usage

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

Value

logical vector


kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.