Fast computation of sweep(X, MARGIN = 1, FUN = "-", STATS = center)
a numeric vector of length equal to the number of rows of
A matrix of same size as X.
Brice Ozenne <firstname.lastname@example.org>
x <- matrix(1,6,5) sweep(x, MARGIN = 1, FUN = "-", STATS = 1:6) colCenter_cpp(x, 1:6 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.