Convert character or integer vectors into int64 vectors.

Share:

Description

Convert character or integer vectors into int64 vectors.

Usage

1

Arguments

x

A character or integer vector

Details

For conversion of character vectors, the C function atol is used.

Value

A new int64 vector.

Author(s)

Romain Francois, sponsored by the Google Open Source Programs Office

References

C++ atol function: http://www.cplusplus.com/reference/clibrary/cstdlib/atol/

See Also

as.uint64 for conversion to unsigned long vectors.

Examples

1
2
as.int64( c(1L, 2L ) )
as.int64( c("123456789123456", "987654321987654" ) )