Description Usage Arguments Details Value See Also
Simpler version of the scale
function, which works better for variables in data lists.
1 | simple.scale(x, center = TRUE, scale = TRUE, simplify = TRUE)
|
x |
an R object with numeric data |
center |
should mean of |
scale |
should |
simplify |
should |
simple.scale
simplifies scale
in three ways:
Treats matrix-like objects as a single variable, rather than several variables (i.e. one per column as in scale
).
Uses the population version of the standard deviation, rather than the sample version.
Preserves dimensions of arrays of any number of dimensions, rather than collapse to a single column matrix for arrays with three or more dimensions.
Doesn't bother to check if x
is numeric.
For further information, just type simple.scale
to see the source (it really is a very simple function).
A scaled version of x
(possibly simplified to an array, if simplify = TRUE
).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.