Colum-wise cumulative operations (sum, prod, min, max) | R Documentation |
Colum-wise cumulative operations (sum, prod, min, max).
colCumSums(x)
colCumProds(x)
colCumMins(x)
colCumMaxs(x)
x |
A numerical matrix. |
Cumulative mins, maxs, sums and prods are returned.
A matrix with the results. It has one row less than the initial matrix.
Manos Papadakis and Michail Tsagris
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com> and Michail Tsagris <mtsagris@uoc.gr>.
colsums, colMedians, colVars
x <- matrnorm(10, 10)
res<-colCumSums(x)
res<-colCumMins(x)
res<-colCumMaxs(x)
res<-colCumProds(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.