cscale_inplace | R Documentation |
Center (and scale) a matrix 'inplace'. The function is meant for big matrices that shall be scaled inplace, hence without creating a copy
cscale_inplace(X, means = NULL, vars = NULL, scale=FALSE)
X |
numeric matrix |
means |
numeric vector, if ommitted will be computed using codeccolmv |
vars |
numeric vector, if ommitted will be computed using |
scale |
boolean - scale the matrix |
nothing, function works 'inplace'
# generate random data
rand_data(100,500)
# scale matrix
cscale_inplace(M,scale=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.