Last data update: 2014.03.03

R: Coerce to integer64
as.integer64.characterR Documentation

Coerce to integer64

Description

Methods to coerce from other atomic types to integer64.

Usage

 NA_integer64_
 as.integer64(x, ...)
 ## S3 method for class 'integer64'
as.integer64(x, ...)
 ## S3 method for class 'NULL'
as.integer64(x, ...)
 ## S3 method for class 'character'
as.integer64(x, ...)
 ## S3 method for class 'double'
as.integer64(x, ...)
 ## S3 method for class 'integer'
as.integer64(x, ...)
 ## S3 method for class 'logical'
as.integer64(x, ...)
 ## S3 method for class 'factor'
as.integer64(x, ...)

Arguments

x

an atomic vector

...

further arguments to the NextMethod

Details

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

Value

The other methods return atomic vectors of the expected types

Author(s)

Jens Oehlschl<c3><a4>gel <Jens.Oehlschlaegel@truecluster.com>

See Also

as.character.integer64 integer64

Examples

  as.integer64(as.character(lim.integer64()))

Results