Fast computation of apply(x,2,cumsum)
colCumSum(x)
x
A matrix.
A matrix of same size as x.
Thomas Alexander Gerds <tag@biostat.ku.dk>
x <- matrix(1:8,ncol=2) colCumSum(x)