I can not find the answer to this question. All the answers my search engine gives me is how to round the number instead of how to get an unrounded number. Suppose I have a data.frame:
a <- c(1:4)
b <- c(1.123456789, 2.123456789, 3.123456789, 4.123456789)
df <- data.frame(a, b)
All methods I know return me a rounded number to the 6th digit after point:
df[2,2]
# [1] 2.123457
df[2,]
# a b
# 2 2 2.123457
df$b
# [1] 1.123457 2.123457 3.123457 4.123457
df$b[2]
# [1] 2.123457
df[df$a == 2, ]
# a b
# 2 2 2.123457
So, how to get the exact value? My desired output would be
[1] 2.123456789
Thank you!