2

The %in% operator is not providing correct output for integer64

x <- bit64::as.integer64("9219348897572232380")
y <- bit64::as.integer64("9221407835133917342")
x == y
# FALSE
x %in% y
# TRUE
Shubham Gupta
  • 650
  • 6
  • 18

1 Answers1

2

The issue was that I didn't call the library(bit64), hence, bit64 specific %in% wasn't dispatched. Thanks @akrun

library(bit64)
x <- bit64::as.integer64("9219348897572232380")
y <- bit64::as.integer64("9221407835133917342")
x == y
# FALSE
x %in% y
# FALSE
Shubham Gupta
  • 650
  • 6
  • 18