Learn R Programming

bit64 (version 0.9-7.1)

as.integer64.character: Coerce to integer64

Description

Methods to coerce from other atomic types to integer64.

Usage

NA_integer64_
 as.integer64(x, …)
 # S3 method for integer64
as.integer64(x, …)
 # S3 method for NULL
as.integer64(x, …)
 # S3 method for character
as.integer64(x, …)
 # S3 method for double
as.integer64(x, keep.names = FALSE, …)
 # S3 method for integer
as.integer64(x, …)
 # S3 method for logical
as.integer64(x, …)
 # S3 method for factor
as.integer64(x, …)

Arguments

x

an atomic vector

keep.names

FALSE, set to TRUE to keep a names vector

further arguments to the NextMethod

Value

The other methods return atomic vectors of the expected types

Details

as.integer64.character is realized using C function strtoll which does not support scientific notation. Instead of '1e6' use '1000000'.

See Also

as.character.integer64 integer64

Examples

Run this code
# NOT RUN {
  as.integer64(as.character(lim.integer64()))
# }

Run the code above in your browser using DataLab