Skip to content
RDocumentation: cumsum
  • AI Chat
  • Code
  • Report
  • Note that this notebook was automatically generated from an RDocumentation page. It depends on the package and the example code whether this code will run without errors. You may need to edit the code to make things work.

    if(!require('base')) {
        install.packages('base')
        library('base')
    }
    cumsum(1:10)
    cumprod(1:10)
    cummin(c(3:1, 2:0, 4:2))
    cummax(c(3:1, 2:0, 4:2))