I am trying to read an excel file into R with read_excel()
function from the "readxl" package.
Numbers in cells in the excel file have 3 decimal places, e.g.
0,684 1,338 74,296
. In the R dataframe the same numbers are 0,684 1,34 74,3
.
Why did only 3 digits remain?
I have set options(digits=5)
(tried different values as well) .
I have also tried to read_excel("file.xlsx", col_types = c("text", "text", "text"))
(which gave me strings: 74.296000000000006 1.3380000000000001 0.68400000000000005
) and then convert to numbers withas.numeric()
, but again the numbers have been truncated: 0,684 1,34 74,3
.
Please, let me know if you know the reason :)