Zeros happen. Logging zeros leads to errors in downstream code. For the sake of robustness, we replace zeros with a small positive number to be able to continue with calculations.
rlog(x, base = exp(1))
numeric or complex vector.
positive or complex number. The base with respect to which
logarithms are computed. Defaults to
Use judiciously, since errors are good too.