Learn R Programming

bit64 (version 4.5.2)

xor.integer64: Binary operators for integer64 vectors

Description

Binary operators for integer64 vectors.

Usage

# S3 method for integer64
&(e1,e2)
# S3 method for integer64
|(e1,e2)
# S3 method for integer64
xor(x,y)
# 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)
binattr(e1,e2) # for internal use only

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'

Author

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

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