sweep
sweep
AGGREGATIONS
1 Description
S3 generic for sweep(). Dispatches to sweep.HDF5Matrix for HDF5Matrix objects, and to base::sweep() for all others.
2 Usage
sweep(x, MARGIN, STATS, FUN = "-", check.margin = TRUE, ...)3 Arguments
| Parameter | Description |
|---|---|
x |
A matrix or object. |
MARGIN |
Integer. for rows, for columns. |
STATS |
Numeric vector to sweep out. |
FUN |
Character. Function to apply: , , etc. |
check.margin |
Logical. Check that length matches margin. |
4 Value
A new or matrix with swept out.