powered by
Fast computation of t(apply(x,1,cumprod))
rowCumProd(x)
A matrix of same size as x.
A matrix.
Thomas Alexander Gerds <tag@biostat.ku.dk>
x <- matrix(1:8,ncol=2) rowCumProd(x)
Run the code above in your browser using DataLab