sweep: Sweep

sweepR Documentation

Sweep

Description

Sweep vector or ddmatrix from a distributed matrix.

Usage

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

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

## S4 method for signature '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.


wrathematics/pbdDMAT documentation built on Oct. 2, 2024, 2:56 p.m.