CumSum | R Documentation |
Cummulative sums
CumSum(X, dimens = 1)
X |
Data Matrix |
dimens |
Dimension for summing |
Cummulative sums within rows (dimens=1) or columns (dimens=2) of a data matrix
A matrix of the same size as X with cummulative sums within each row or each column
Jose Luis Vicente Villardon
data(wine)
X=wine[,4:21]
CumSum(X,1)
CumSum(X,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.