| scale {matter} | R Documentation |
An implementation of scale for matter_mat matrices.
## S4 method for signature 'matter_mat' scale(x, center = TRUE, scale = TRUE)
x |
A |
center |
Either a logical value or a numeric vector of length equal to the number of columns of 'x'. |
scale |
Either a logical value or a numeric vector of length equal to the number of columns of 'x'. |
See scale for details.
A matter_mat object with the appropriate ‘scaled:center’ and ‘scaled:scale’ attributes set. No data in virtual memory is changed, but the scaling will be applied any time the data is read. This includes but is not limited to loading data elements via subsetting, summary statistics methods, and matrix multiplication.
Kylie A. Bemis
x <- matter(1:100, nrow=10, ncol=10) scale(x)