zapsmall(x, digits = getOption(“digits”)))

If some values of x are nearly zero relative to the larger values in x, then zapsmall will set those small values to zero.

- x – A numeric vector.
- digits – An integer indicating the precision.

While not a perfect rule, anticipate values of x that are, in absolute value, less than 1 and are 10^digits smaller than the largest values of x to be set to zero.