rowCumProd: Apply cumprod in each row

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

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

Usage

1

Arguments

x

A matrix.

Value

A matrix of same size as x.

Author(s)

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

Examples

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

riskRegression documentation built on Jan. 13, 2021, 11:12 a.m.