colCumProd: Apply cumprod in each column

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

Fast computation of apply(x,2,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)
colCumProd(x)

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