rowCumProd: Apply cumprod in each row

View source: R/RcppExports.R

rowCumProdR Documentation

Apply cumprod in each row

Description

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

Usage

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

riskRegression documentation built on March 23, 2022, 5:07 p.m.