rowDiffs: Calculates difference for each row (column) in a matrix

Description Usage Arguments Value Author(s) See Also

Description

Calculates difference for each row (column) in a matrix.

Usage

1
2

Arguments

x

A numeric NxK matrix.

...

Not used.

Value

Returns a numeric Nx(K-1) or (N-1)xK matrix.

Author(s)

Henrik Bengtsson

See Also

Internally diff() is used.


matrixStats documentation built on May 2, 2019, 4:52 p.m.