Learn R Programming

bit64 (version 4.5.2)

extract.replace.integer64: Extract or Replace Parts of an integer64 vector

Description

Methods to extract and replace parts of an integer64 vector.

Usage

# S3 method for integer64
[(x, i, ...)
 # S3 method for integer64
[(x, ...) <- value 
 # S3 method for integer64
[[(x, ...)
 # S3 method for integer64
[[(x, ...) <- value

Value

A vector or scalar of class 'integer64'

Arguments

x

an atomic vector

i

indices specifying elements to extract

value

an atomic vector with values to be assigned

...

further arguments to the NextMethod

Author

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

See Also

[ integer64

Examples

Run this code
  as.integer64(1:12)[1:3]
  x <- as.integer64(1:12)
  dim(x) <- c(3,4)
  x
  x[]
  x[,2:3]
  # \dontshow{
    r <- c(runif64(1e3, lim.integer64()[1], lim.integer64()[2]), NA, -2:2)
    stopifnot(identical(r, as.integer64(as.bitstring(r))))
  # }

Run the code above in your browser using DataLab