Learn R Programming

bit64 (version 4.5.2)

cumsum.integer64: Cumulative Sums, Products, Extremes and lagged differences

Description

Cumulative Sums, Products, Extremes and lagged differences

Usage

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

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

Arguments

x

an atomic vector of class 'integer64'

lag

see diff

differences

see diff

...

ignored

Author

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

See Also

sum.integer64 integer64

Examples

Run this code
  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)

Run the code above in your browser using DataLab