Description Usage Arguments Value Reference
Same as base::scale() but much faster.
1  | 
x | 
 A matrix.  | 
add_attr | 
 If TRUE, the column means and standard deviations are returned as attributes. This is consistent with   | 
The scaled matrix.
This function was adopted from John Muschelli's code on StackOverflow, but I changed the underlying functions to calculate mean and standard deviation from matrixStats to Rfast, which is much faster.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.