Description Usage Arguments Details Value
View source: R/clean_functions.R
An analogue to the log transformation for negative values.
1 |
x |
a numeric or complex vector |
base |
a positive or complex number: the base with respect
to which logarithms are computed. Defaults to e= |
offset |
a number specifying an offset to avoid |
neglog(x)
is calculated such that
neglog(x) = sign(x) * \log(|x + offset|).
The offset ensures that no -Inf
value is returned.
The default offset is 0.5.
A vector of the same length as x
containing the transformed
values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.