ch.altRootTransform | R Documentation |
This function transforms a variable as follows: x.out <- ifelse(x>0, x^(1/root), -1*abs(x)^(1/root)). This transformation compresses numbers that are a large distance from zero (both positive and negative).
ch.altRootTransform(x, root = 4)
x |
a numeric vector. |
root |
a number indicating the root that x will be taken to (e.g., 2 = sqrt; 4=cubed root; etc.). DEFAULT = 4. |
a vector of transformed numbers.
ch.altRootTransform (myX)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.