View source: R/general_tools.R
transform | R Documentation |
When combining (i) and (ii) or (i) and (iii) the data is first transformed then scaled/normalized Note: Combining (ii) and (iii) does not make any sense.
transform(
x,
fun,
fun_inverse,
scale = FALSE,
normalize = FALSE,
eps = 0.001,
...
)
x |
a numeric vector |
fun |
a function to transform x. Or character vector: at the moment only 'logap' (log(x+a)) is implemented |
fun_inverse |
the inverse of it |
scale |
boolean. shall x also be scaled? default = FALSE |
normalize |
boolean. shall x also be normalized? default = FALSE |
... |
other parameters passed 'scale' (at the moment only support 'center') |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.