Internal functions defining tolerances for the comparedf.control
function.
To create your own tolerance definitions, see the vignette.
tol.NA(x, y, idx) tol.num.absolute(x, y, tol) tol.num.percent(x, y, tol) tol.num.pct(x, y, tol) tol.factor.none(x, y) tol.factor.levels(x, y) tol.factor.labels(x, y) tol.char.both(x, y) tol.char.case(x, y) tol.char.trim(x, y) tol.char.none(x, y) tol.date.absolute(x, y, tol) tol.logical.none(x, y) tol.other.none(x, y)
x, y | vectors of the appropriate lengths and types. |
---|---|
idx | A logical vector of appropriate length. |
tol | A numeric tolerance |
A logical vector of length equal to that of x
and y
, where TRUE
denotes a
difference between x
and y
, and FALSE
denotes no difference between x
and y
.
tol.NA
takes as differences between two vectors any elements which are NA in one but not the other,
or which are non-NA in both and TRUE
in idx
. It is useful for handling NAs in custom tolerance functions.
Ethan Heinzen