sweep | R Documentation |
Return an array obtained from an input array by sweeping out a summary statistic.
## S4 method for signature 'fm' sweep(x, MARGIN, STATS, FUN = "-", check.margin = TRUE, ...)
x |
a FlashR matrix. |
MARGIN |
an integer giving the extent of |
STATS |
the summary statistic which is to be swept out. |
FUN |
the function to be used to carry out the sweep. |
check.margin |
logical. It's ignored right now. |
... |
optional arguments to |
A matrix with the same shape as x
, but with the summary
statistics swept out.
mat <- fm.runif.matrix(100, 10) sweep(mat, 1, runif(100))