colCumMaxs: Colum-wise cumulative operations (sum, prod, min, max)

View source: R/cumulative.R

Colum-wise cumulative operations (sum, prod, min, max)R Documentation

Colum-wise cumulative operations (sum, prod, min, max)

Description

Colum-wise cumulative operations (sum, prod, min, max).

Usage

colCumSums(x)
colCumProds(x)
colCumMins(x)
colCumMaxs(x)

Arguments

x

A numerical matrix.

Details

Cumulative mins, maxs, sums and prods are returned.

Value

A matrix with the results. It has one row less than the initial matrix.

Author(s)

Manos Papadakis and Michail Tsagris

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com> and Michail Tsagris <mtsagris@uoc.gr>.

See Also

colsums, colMedians, colVars

Examples

x <- matrnorm(10, 10)
res<-colCumSums(x)
res<-colCumMins(x)
res<-colCumMaxs(x)
res<-colCumProds(x)

Rfast documentation built on March 18, 2022, 7:41 p.m.