FastRowScale | R Documentation |
Performs row scaling and/or centering. Equivalent to using t(scale(t(mat))) in R except in the case of NA values.
FastRowScale(mat, center = TRUE, scale = TRUE, scale_max = 10)
mat |
A matrix |
center |
a logical value indicating whether to center the rows |
scale |
a logical value indicating whether to scale the rows |
scale_max |
clip all values greater than scale_max to scale_max. Don't clip if Inf. |
Returns the center/scaled matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.