Skip to main content

builtin_all_equal

Function builtin_all_equal 

Source
fn builtin_all_equal(
    args: &[RValue],
    named: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Test near-equality of two objects within a tolerance.

Returns TRUE if the objects are nearly equal, or a character vector of strings describing the differences. Matches R’s all.equal() semantics: numeric comparison uses mean relative/absolute difference with a configurable tolerance.

@param target first object @param current second object @param tolerance maximum allowed difference (default: 1.5e-8) @param check.attributes if TRUE, also compare attributes @param check.names if TRUE, compare names attributes @return TRUE if equal, or character string(s) describing the difference(s)