Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cumsum.integer64

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

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)

bit64

A S3 Class for Vectors of 64bit Integers

v4.0.5
GPL-2 | GPL-3
Authors
Jens Oehlschlägel [aut, cre], Leonardo Silvestri [ctb]
Initial release
2020-08-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.