as.character.integer64: Coerce from integer64

Description Usage Arguments Value Author(s) See Also Examples

Description

Methods to coerce integer64 to other atomic types. 'as.bitstring' coerces to a human-readable bit representation (strings of zeroes and ones). The methods format, as.character, as.double, as.logical, as.integer do what you would expect.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 as.bitstring(x, ...)
 ## S3 method for class 'integer64'
as.bitstring(x, ...)
 ## S3 method for class 'bitstring'
print(x, ...)
 ## S3 method for class 'integer64'
as.character(x, ...)
 ## S3 method for class 'integer64'
as.double(x, keep.names = FALSE, ...)
 ## S3 method for class 'integer64'
as.integer(x, ...)
 ## S3 method for class 'integer64'
as.logical(x, ...)
 ## S3 method for class 'integer64'
as.factor(x)
 ## S3 method for class 'integer64'
as.ordered(x)

Arguments

x

an integer64 vector

keep.names

FALSE, set to TRUE to keep a names vector

...

further arguments to the NextMethod

Value

as.bitstring returns a string of class 'bitstring'.
The other methods return atomic vectors of the expected types

Author(s)

Jens Oehlschlägel <Jens.Oehlschlaegel@truecluster.com>

See Also

as.integer64.character integer64

Examples

1
2
3
4
5

Example output

Loading required package: bit
Attaching package bit
package:bit (c) 2008-2012 Jens Oehlschlaegel (GPL-2)
creators: bit bitwhich
coercion: as.logical as.integer as.bit as.bitwhich which
operator: ! & | xor != ==
querying: print length any all min max range sum summary
bit access: length<- [ [<- [[ [[<-
for more help type ?bit

Attaching package: 'bit'

The following object is masked from 'package:base':

    xor

Attaching package bit64
package:bit64 (c) 2011-2012 Jens Oehlschlaegel
creators: integer64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bin
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64

Attaching package: 'bit64'

The following object is masked from 'package:bit':

    still.identical

The following objects are masked from 'package:base':

    %in%, :, is.double, match, order, rank

[1] "-9223372036854775807" "9223372036854775807" 
[1] "1000000000000000000000000000000000000000000000000000000000000001"
[2] "0111111111111111111111111111111111111111111111111111111111111111"
[1] "1111111111111111111111111111111111111111111111111111111111111110"
[2] "1111111111111111111111111111111111111111111111111111111111111111"
[3] "1000000000000000000000000000000000000000000000000000000000000000"
[4] "0000000000000000000000000000000000000000000000000000000000000000"
[5] "0000000000000000000000000000000000000000000000000000000000000001"
[6] "0000000000000000000000000000000000000000000000000000000000000010"

bit64 documentation built on May 2, 2019, 4:49 p.m.