transfR | R Documentation |
Compute the the desired transformation for the abs of the input and multiply the output by the sign of the input.
transfR(x, transf, inverse = FALSE, base = 2)
x |
numeric |
transf |
character name of the function that implements the transformation to be applied. |
inverse |
logical indicating if the inverse of the transformation is to be performed |
base |
numeric to be considered as the base of the log transformation |
numeric with the transformed input
transfR(-5:5, 'sqrt')
transfR(-5:5, 'log')
plot(function(x) transfR(x, 'log'), -10, 10)
plot(function(x) transfR(x, 'log', base=10),
-10, 10, col=4, add=TRUE)
x <- -30:30/30
plot(x, transfR(transfR(x, 'log'),
'log', inverse=TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.