R: Cumulative Sums, Products, Extremes and lagged differences

cumsum.integer64 {bit64} | R Documentation

## Cumulative Sums, Products, Extremes and lagged differences

### Description

Cumulative Sums, Products, Extremes and lagged differences

### Usage

    ## S3 method for class 'integer64'
    cummin(x)
    ## S3 method for class 'integer64'
    cummax(x)
    ## S3 method for class 'integer64'
    cumsum(x)
    ## S3 method for class 'integer64'
    cumprod(x)
    ## S3 method for class 'integer64'
    diff(x, lag = 1L, differences = 1L, ...)

### Arguments

`x` | an atomic vector of class 'integer64'
`lag` | see `diff`
`differences` | see `diff`
`...` | ignored

### Value

`cummin`, `cummax` , `cumsum` and `cumprod` return a integer64 vector of the same length as their input
`diff` returns a integer64 vector shorter by `lag*differences` elements

### Author(s)

Jens Oehlschlägel <Jens.Oehlschlaegel@truecluster.com>

### See Also

`sum.integer64` `integer64`

### Examples

      cumsum(rep(as.integer64(1), 12))
      diff(as.integer64(c(0,1:12)))
      cumsum(as.integer64(c(0, 1:12)))
      diff(cumsum(as.integer64(c(0,0,1:12))), differences=2)

[Package bit64 version 4.0.2 Index]