Learn R Programming

pbdDMAT (version 0.5-1)

sweep: Sweep

Description

Sweep vector or ddmatrix from a distributed matrix.

Usage

sweep(x, MARGIN, STATS, FUN = "-", check.margin = TRUE, ...)

# S4 method for ddmatrix,ANY,vector sweep(x, MARGIN, STATS, FUN = "-")

# S4 method for ddmatrix,ANY,ddmatrix sweep(x, MARGIN, STATS, FUN = "-")

Arguments

x

numeric distributed matrix.

MARGIN

subscript over which the function will be applied

STATS

array to be swept out.

FUN

function used in the sweep. Only +, -, *, and / are accepted. For more general operations, use apply().

check.margin, ...

Ignored.

Value

Returns a distributed matrix.