S3 generic for sweep(). Dispatches to sweep.HDF5Matrix
for HDF5Matrix objects, and to base::sweep() for all others.
sweep(x, MARGIN, STATS, FUN = "-", check.margin = TRUE, ...)A new HDF5Matrix or matrix with STATS swept out.
A matrix or HDF5Matrix object.
Integer. 1 for rows, 2 for columns.
Numeric vector to sweep out.
Character. Function to apply: "-", "+", etc.
Logical. Check that STATS length matches margin.
Additional arguments passed to the method.