h_all_equivalent: Comparison with Numerical Tolerance and Without Name...

View source: R/helpers.R

h_all_equivalentR Documentation

Comparison with Numerical Tolerance and Without Name Comparison

Description

[Experimental]

This helper function ensures a default tolerance level equal to 1e-10, and ignores names and other attributes. In contrast to all.equal(), it always returns a logical type object.

Usage

h_all_equivalent(target, current, tolerance = 1e-10)

Arguments

target

(numeric)
target values.

current

(numeric)
current values.

tolerance

(number) relative differences smaller than this are not reported.

Value

TRUE when target and current do not differ up to desired tolerance and without looking at names or other attributes, FALSE otherwise.


Roche/crmPack documentation built on April 30, 2024, 3:19 p.m.