Cumsum: Cumulative sums

Description Usage Arguments Details Value Author(s) Examples

View source: R/Cumsum.R

Description

Cumulative sums.

Usage

1
Cumsum(X, dimens = 1)

Arguments

X

Data Matrix.

dimens

Dimension for summing.

Details

Cumulative sums within rows (dimens=1) or columns (dimens=2) of a data matrix.

Value

A matrix of the same size as X with cumulative sums within each row or each column.

Author(s)

Jose Luis Vicente-Villardon

Examples

1
2
3
4
data(wine)
X=wine[,4:21]
Cumsum(X,1)
Cumsum(X,2)

PERMANOVA documentation built on Sept. 6, 2021, 5:07 p.m.

Related to Cumsum in PERMANOVA...