Description Usage Arguments Value Author(s) Examples
Fast computation of sweep(X, MARGIN = 2, FUN = "/", STATS = scale)
1 | rowScale_cpp(X, scale)
|
X |
A matrix. |
scale |
a numeric vector of length equal to the number of rows of |
A matrix of same size as X.
Brice Ozenne <broz@sund.ku.dk>
1 2 3 4 5 | x <- matrix(1,6,5)
sweep(x, MARGIN = 2, FUN = "/", STATS = 1:5)
rowScale_cpp(x, 1:5 )
rowScale_cpp(x, colMeans(x) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.