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'
any(..., na.rm = FALSE)
# S3 method for class 'integer64'
all(..., na.rm = FALSE)
# S3 method for class 'integer64'
sum(..., na.rm = FALSE)
# S3 method for class 'integer64'
prod(..., 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()
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
. Wherever integer methods would
return Inf
(or its negation), here the extreme 64-bit integer 9223372036854775807
is
returned. See min()
for more details about the behavior.
lim.integer64
returns these limits in proper order
-9223372036854775807, +9223372036854775807
and without a warning()
.
Examples
lim.integer64()
#> integer64
#> [1] -9223372036854775807 9223372036854775807
range(as.integer64(1:12))
#> integer64
#> [1] 1 12