bit64 (version 4.0.5)

bit64S3: Turning base R functions into S3 generics for bit64

Description

Turn those base functions S3 generic which are used in bit64

Usage

from:to
 #--as-cran complains about \method{:}{default}(from, to)
 #--as-cran complains about \method{:}{integer64}(from, to)
	is.double(x)
 # S3 method for default
is.double(x)
 # S3 method for integer64
is.double(x)
	match(x, table, ...)
 # S3 method for default
match(x, table, ...)
	x %in% table
 # S3 method for default
%in%(x, table)
	rank(x, ...)
 # S3 method for default
rank(x, ...)
	
 
	order(...)
 # S3 method for default
order(...)

Arguments

x

integer64 vector: the values to be matched, optionally carrying a cache created with hashcache

table

integer64 vector: the values to be matched against, optionally carrying a cache created with hashcache or sortordercache

from

scalar denoting first element of sequence

to

scalar denoting last element of sequence

ignored

Value

invisible

Details

The following functions are turned into S3 gernerics in order to dispatch methods for integer64:

	   \code{\link{:}}
	   \code{\link{is.double}}
	   \code{\link{match}}
	   \code{\link{%in%}}
	   
	   \code{\link{rank}}
	   \code{\link{order}}
   

See Also

bit64, S3

Examples

Run this code
# NOT RUN {
 is.double(as.integer64(1))
	as.integer64(1):9
 match(as.integer64(2), as.integer64(0:3))
 as.integer64(2) %in% as.integer64(0:3)
 
 unique(as.integer64(c(1,1,2)))
 rank(as.integer64(c(1,1,2)))
 
 
# }
# NOT RUN {
<!-- %table(as.integer64(c(1,1,2))) -->
# }
# NOT RUN {
 
# }
# NOT RUN {
<!-- %table(as.integer64(c(1,1,2)),as.integer64(c(3,4,4))) -->
# }
# NOT RUN {
 
# }
# NOT RUN {
<!-- %table(as.integer64(c(1,1,2)),c(3,4,4)) -->
# }
# NOT RUN {
 
# }
# NOT RUN {
<!-- %table(c(1,1,2),as.integer64(c(3,4,4))) -->
# }
# NOT RUN {
 
 order(as.integer64(c(1,NA,2)))
 
 
# }

Run the code above in your browser using DataCamp Workspace