Class "uint64"

Share:

Description

Vector of signed 64 bit integers

Objects from the Class

Objects can be created by using the uint64 function, by converting character vectors or integer vectors using the as.uint64 function.

Slots

.Data:

list of integer vectors of length 2. Each uint64 number is coded as two integers.

NAMES:

Used for names of vectors. This is only being used through the names and names<- functions.

Extends

Class "list", from data part. Class "vector", by class "list", distance 2.

Methods

[

signature(x = "uint64"): ...

[<-

signature(x = "uint64"): ...

Arith

signature(e1 = "ANY", e2 = "uint64"): ...

Arith

signature(e1 = "uint64", e2 = "ANY"): ...

Arith

signature(e1 = "uint64", e2 = "uint64"): ...

as.character

signature(x = "uint64"): ...

Compare

signature(e1 = "ANY", e2 = "uint64"): ...

Compare

signature(e1 = "uint64", e2 = "ANY"): ...

Compare

signature(e1 = "uint64", e2 = "uint64"): ...

length

signature(x = "uint64"): ...

Summary

signature(x = "uint64"): ...

Math

signature(x = "uint64"): ...

Math2

signature(x = "uint64"): ...

c

signature(x = "uint64"): ...

is.na

signature(x = "uint64"): ...

Author(s)

Romain Francois. Sponsored the Google Open Source Programs Office.

See Also

as.uint64 to convert character or integer vectors.

uint64 to create new uint64 vectors of a given size.

The int64 class to represent signed 64 bit integer vectors.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    x <- uint64( 4 )
    
    # setting subsets
    x[1:2] <- 1:2
    x[3:4] <- c("123456789012345", "9876543219876")
    x
    
    # arithmetic operations
    x * 2L
    x + x
    x - 3L
    
    # logical operations
    x < 3L
    x != c( 1L, 2L )
    
    # Summary operations
    range( x )
    min( x )
    max( x )
    length(x)
    
    
    df <- data.frame( a = 1:4 )
    df$b <- x
    df
    
    as.character( x )