Description Usage Arguments Value
Get rid of zeros in a numeric vector before taking the logarithm of them. We basically replace the "zeros" with a negligible small value in order to avoid NaN upon the log-transformation.
1 | avoidZero(x, fac = 10)
|
x |
numeric values as input |
fac |
numeric a factor of scale in order to get a "small" value to replace zeros |
a vector of value with zeros replaced.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.