Remove the mean and/or sd of the columns of a matrix. The operations occur in-place.

dimops_scale(rm_mean = TRUE, rm_sd = FALSE, x)

Arguments

rm_mean, rm_sd

Should the data be centered/scaled first?

x

Input matrix. The input data is overwritten by the centered/scaled data.