Learn R Programming

bit64 (version 4.6.0-1)

xor.integer64: Binary operators for integer64 vectors

Description

Binary operators for integer64 vectors.

Usage

binattr(e1, e2)

# S3 method for integer64 +(e1, e2)

# S3 method for integer64 -(e1, e2)

# S3 method for integer64 %/%(e1, e2)

# S3 method for integer64 %%(e1, e2)

# S3 method for integer64 *(e1, e2)

# S3 method for integer64 ^(e1, e2)

# S3 method for integer64 /(e1, e2)

# S3 method for integer64 ==(e1, e2)

# S3 method for integer64 !=(e1, e2)

# S3 method for integer64 <(e1, e2)

# S3 method for integer64 <=(e1, e2)

# S3 method for integer64 >(e1, e2)

# S3 method for integer64 >=(e1, e2)

# S3 method for integer64 &(e1, e2)

# S3 method for integer64 |(e1, e2)

# S3 method for integer64 xor(x, y)

Value

&, |, xor(), !=, ==, <, <=, >, >= return a logical vector

^ and / return a double vector

+, -, *, %/%, %%

return a vector of class 'integer64'

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'

See Also

format.integer64() integer64()

Examples

Run this code
  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

Run the code above in your browser using DataLab