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

sum.integer64

Summary functions for integer64 vectors


Description

Summary functions for integer64 vectors. Function 'range' without arguments returns the smallest and largest value of the 'integer64' class.

Usage

## S3 method for class 'integer64'
all(..., na.rm = FALSE)
## S3 method for class 'integer64'
any(..., na.rm = FALSE)
## S3 method for class 'integer64'
min(..., na.rm = FALSE)
## S3 method for class 'integer64'
max(..., na.rm = FALSE)
## S3 method for class 'integer64'
range(..., na.rm = FALSE, finite = FALSE)
lim.integer64()
## S3 method for class 'integer64'
sum(..., na.rm = FALSE)
## S3 method for class 'integer64'
prod(..., na.rm = FALSE)

Arguments

...

atomic vectors of class 'integer64'

na.rm

logical scalar indicating whether to ignore NAs

finite

logical scalar indicating whether to ignore NAs (just for compatibility with range.default)

Details

The numerical summary methods always return integer64. Therefor the methods for min,max and range do not return +Inf,-Inf on empty arguments, but +9223372036854775807, -9223372036854775807 (in this sequence). The same is true if only NAs are submitted with argument na.rm=TRUE.
lim.integer64 returns these limits in proper order -9223372036854775807, +9223372036854775807 and without a warning.

Value

all and any return a logical scalar
range returns a integer64 vector with two elements
min, max, sum and prod return a integer64 scalar

Author(s)

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

See Also

Examples

lim.integer64()
  range(as.integer64(1:12))

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.