Description Usage Arguments Value Examples
Sweep
1 2 3 | sweep1_in_place(x, STATS, FUN = c("-", "+", "*", "/"))
sweep2_in_place(x, STATS, FUN = c("-", "+", "*", "/"))
|
x |
a matrix. |
STATS |
the summary statistic which is to be swept out. |
FUN |
the function to be used to carry out the sweep. |
NULL
, invisibly.
1 2 3 4 5 | x <- matrix(1:6, 2)
sweep(x, 2, 1:3)
x
sweep2_in_place(x, 1:3)
x
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.