fequal: Check Numeric Vector Equality Within Tolerance

View source: R/RcppExports.R

fequalR Documentation

Check Numeric Vector Equality Within Tolerance

Description

This function checks whether all non-missing elements in a numeric vector are equal within a specified tolerance. Differences between elements that are less than or equal to the tolerance are considered negligible.

Usage

fequal(x, tol)

Arguments

x

A numeric vector to test for equality.

tol

A tolerance value. Differences below or equal to this value are considered equal.

Value

A logical value: TRUE if all non-missing elements are equal within the tolerance, and FALSE otherwise.


ChristK/CKutils documentation built on April 11, 2025, 10:11 p.m.