colCumSum: Apply cumsum in each column

View source: R/RcppExports.R

colCumSumR Documentation

Apply cumsum in each column

Description

Fast computation of apply(x,2,cumsum)

Usage

colCumSum(x)

Arguments

x

A matrix.

Value

A matrix of same size as x.

Author(s)

Thomas Alexander Gerds <tag@biostat.ku.dk>

Examples

x <- matrix(1:8,ncol=2)
colCumSum(x)

riskRegression documentation built on May 29, 2024, 10:59 a.m.