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

Description Usage Arguments Value

View source: R/helpers.R

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

1
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.


0liver0815/onc-crmpack-test documentation built on Feb. 19, 2022, 12:25 a.m.