powered by
Unary operators and functions for integer64 vectors.
# S3 method for integer64 format(x, justify="right", ...) # S3 method for integer64 is.na(x) # S3 method for integer64 is.nan(x) # S3 method for integer64 is.finite(x) # S3 method for integer64 is.infinite(x) # S3 method for integer64 !(x) # S3 method for integer64 sign(x) # S3 method for integer64 abs(x) # S3 method for integer64 sqrt(x) # S3 method for integer64 log(x, base) # S3 method for integer64 log2(x) # S3 method for integer64 log10(x) # S3 method for integer64 floor(x) # S3 method for integer64 ceiling(x) # S3 method for integer64 trunc(x, ...) # S3 method for integer64 round(x, digits=0) # S3 method for integer64 signif(x, digits=6) # S3 method for integer64 scale(x, center = TRUE, scale = TRUE)
format returns a character vector
format
is.na and ! return a logical vector
is.na
!
sqrt, log, log2 and log10 return a double vector
sqrt
log
log2
log10
sign, abs, floor, ceiling, trunc and
sign
abs
floor
ceiling
trunc
round return a vector of class 'integer64'
round
signif is not implemented
signif
an atomic vector of class 'integer64'
an atomic scalar (we save 50% log-calls by not allowing a vector base)
integer indicating the number of decimal places (round) or significant digits (signif) to be used. Negative values are allowed (see round)
should it be right-justified (the default), left-justified, centred or left alone.
see scale
scale
further arguments to the NextMethod
NextMethod
Jens Oehlschlägel <Jens.Oehlschlaegel@truecluster.com>
xor.integer64 integer64
xor.integer64
integer64
sqrt(as.integer64(1:12)) # \dontshow{ i <- -999:999 for (s in -3:3){ r <- as.integer64(round(as.integer(i), s)) r64 <- round(as.integer64(i), s) stopifnot(identical(r,r64)) } # }
Run the code above in your browser using DataLab