I had an issue while trying to asnwer a question.
I got this vector with large numbers:
large1 <- c(2016052016051062331, 2016062016061017838,
2016052016051062331, 2016052016051062402,
2016052016051062325, 2016052016051062408,
2016052016051062325, 2016052016051062408)
As we can see there're 5 unique numbers in this numeric
vector. However when I do an unique
I got only 3 values. In addition, it returns different numbers.
unique(large1)
#[1] 2.016052e+18 2.016062e+18 2.016052e+18
I've tried to change the digits using options(digits = 20)
but got same result:
options(digits = 20)
unique(large1)
#[1] 2016052016051062272 2016062016061017856 2016052016051062528
Any idea how to deal with it?