View source: R/Functions_plotting_genericData.R
safelog | R Documentation |
apply a log function to a numeric vector, but replaces zeros and uses abs values
safelog(x, base = 10, replaceZeros = NULL, replaceNonFinites = NA_real_)
x |
numeric vector of positive values |
base |
of log |
replaceZeros |
replace zeros with this value, if NULL will use smallest non-zero absolute value in x |
replaceNonFinites |
replace non-finite values ( |
a numeric vector of same length as x
, with logarithmized values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.