Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class 'integer64'
x[i, ...]
 ## S3 replacement method for class 'integer64'
x[...] <- value 
 ## S3 method for class 'integer64'
x[[...]]
 ## S3 replacement method for class 'integer64'
x[[...]] <- value

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

Value

A vector or scalar of class 'integer64'

Note

You should not subscript non-existing elements and not use NAs as subscripts. The current implementation returns 9218868437227407266 instead of NA.

Author(s)

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

See Also

Examples

as.integer64(1:12)[1:3]
  x <- as.integer64(1:12)
  dim(x) <- c(3,4)
  x
  x[]
  x[,2:3]

bit64

A S3 Class for Vectors of 64bit Integers

v4.0.5
GPL-2 | GPL-3
Authors
Jens Oehlschlägel [aut, cre], Leonardo Silvestri [ctb]
Initial release
2020-08-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.