rowCumSum: Apply cumsum in each row

View source: R/RcppExports.R

rowCumSumR Documentation

Apply cumsum in each row

Description

Fast computation of t(apply(x,1,cumsum))

Usage

rowCumSum(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)
rowCumSum(x)

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