scale | R Documentation |
From http://r.789695.n4.nabble.com/How-to-remove-attributes-from-scale-in-a-matrix-td4671715.html
scale(x, center = TRUE, scale = TRUE)
x |
the data |
center |
whether you subtract the mean |
scale |
whether you divide by the SD |
scale
is exactly the same as normal scale, except without the attributes
that make scale
so terrible to work with in functional
environments.
scale
scale(c(1,2,3,4,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.