pseudoLog | R Documentation |
The domain of logarithm function is >0. However, sometimes it is required to transform numbers using sort of "signed logarithm". The pseudoLog function can achieve this goal.
pseudoLog(x, base = 10, sigma = 1, inverse = FALSE)
x |
numeric value or vector that need to transform. |
base |
base of logarithm. |
inverse |
whether the inverse function of pseudoLog is applied. |
Scaling |
factor for the linear part of pseudo-log transformation. |
## Not run:
x = c(-10^(4:1), 0, 10^(1:4))
y = pseudoLog(x)
print(y)
z = pseudoLog(x, inverse = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.