zapsmall: Rounding of Numbers: Zapping Small Ones to Zero
Description
zapsmall determines a digits argument dr for
calling round(x, digits = dr) such that values close to
zero (compared with the maximal absolute value) are ‘zapped’,
i.e., replaced by 0.
Usage
zapsmall(x, digits = getOption("digits"))
Arguments
x
a numeric or complex vector or any R number-like object
which has a round method and basic arithmetic methods
including log10().
digits
integer indicating the precision to be used.
References
Chambers, J. M. (1998)
Programming with Data. A Guide to the S Language.
Springer.