xor.integer64: Binary operators for integer64 vectors

View source: R/integer64.R

xor.integer64R Documentation

Binary operators for integer64 vectors

Description

Binary operators for integer64 vectors.

Usage

## S3 method for class 'integer64'
e1 & e2
## S3 method for class 'integer64'
e1 | e2
## S3 method for class 'integer64'
xor(x,y)
## S3 method for class 'integer64'
e1 != e2
## S3 method for class 'integer64'
e1 == e2
## S3 method for class 'integer64'
e1 < e2
## S3 method for class 'integer64'
e1 <= e2
## S3 method for class 'integer64'
e1 > e2
## S3 method for class 'integer64'
e1 >= e2
## S3 method for class 'integer64'
e1 + e2
## S3 method for class 'integer64'
e1 - e2
## S3 method for class 'integer64'
e1 * e2
## S3 method for class 'integer64'
e1 ^ e2
## S3 method for class 'integer64'
e1 / e2
## S3 method for class 'integer64'
e1 %/% e2
## S3 method for class 'integer64'
e1 %% e2
binattr(e1,e2) # for internal use only

Arguments

e1

an atomic vector of class 'integer64'

e2

an atomic vector of class 'integer64'

x

an atomic vector of class 'integer64'

y

an atomic vector of class 'integer64'

Value

&, |, xor, !=, ==, <, <=, >, >= return a logical vector
^ and / return a double vector
+, -, *, %/%, %% return a vector of class 'integer64'

Author(s)

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

See Also

format.integer64 integer64

Examples

  as.integer64(1:12) - 1
  options(integer64_semantics="new")
  d <- 2.5
  i <- as.integer64(5)
  d/i  # new 0.5
  d*i  # new 13
  i*d  # new 13
  options(integer64_semantics="old")
  d/i  # old: 0.4
  d*i  # old: 10
  i*d  # old: 13

bit64 documentation built on Sept. 30, 2024, 9:23 a.m.