colCumProd: Apply cumprod in each column

View source: R/RcppExports.R

colCumProdR Documentation

Apply cumprod in each column

Description

Fast computation of apply(x,2,cumprod)

Usage

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

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