Learn R Programming

cpgen (version 0.1)

cscale_inplace: cscale_inplace

Description

Center (and scale) a matrix 'inplace'. The function is meant for big matrices that shall be scaled inplace, hence without creating a copy

Usage

cscale_inplace(X, means = NULL, vars = NULL, scale=FALSE)

Arguments

X
numeric matrix
means
numeric vector, if ommitted will be computed using codeccolmv
vars
numeric vector, if ommitted will be computed using ccolmv
scale
boolean - scale the matrix

Value

nothing, function works 'inplace'

Examples

Run this code
## Not run: 
# # generate random data
# rand_data(500,5000)
# 
# # scale matrix
# cscale_inplace(M,scale=TRUE)
# ## End(Not run)

Run the code above in your browser using DataLab