centering | R Documentation |
mc(x)
is a short for sweep(x, 2, colMeans(x))
scale2(x)
is essentially scale(x)
,
but returns 0 rather than NaN
for constant columns
mc(x)
scale2(x, center = TRUE, scale = FALSE)
x |
Numeric matrix |
center, scale |
Passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.