Description Usage Arguments Details Value Author(s) See Also Examples
Summary functions for integer64 vectors. Function 'range' without arguments returns the smallest and largest value of the 'integer64' class.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## 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)
|
... |
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 |
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 NA
s are submitted with argument na.rm=TRUE
.
lim.integer64
returns these limits in proper order -9223372036854775807, +9223372036854775807
and without a warning
.
all
and any
return a logical scalar
range
returns a integer64 vector with two elements
min
, max
, sum
and prod
return a integer64 scalar
Jens Oehlschlägel <Jens.Oehlschlaegel@truecluster.com>
mean.integer64
cumsum.integer64
integer64
1 2 | lim.integer64()
range(as.integer64(1:12))
|
Loading required package: bit
Attaching package bit
package:bit (c) 2008-2012 Jens Oehlschlaegel (GPL-2)
creators: bit bitwhich
coercion: as.logical as.integer as.bit as.bitwhich which
operator: ! & | xor != ==
querying: print length any all min max range sum summary
bit access: length<- [ [<- [[ [[<-
for more help type ?bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2012 Jens Oehlschlaegel
creators: integer64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bin
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following object is masked from 'package:bit':
still.identical
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
integer64
[1] -9223372036854775807 9223372036854775807
integer64
[1] 1 12
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.