I have a large data set that contains numbers with 13+ decimal places. When I imported the data using read.csv
, only 9 decimal places were preserved. Is there a way to retain more decimal places? The tasks I need to perform is extremely sensitive to the data so the loss of extra decimal places made a big difference in my final results.
I also tried the following. It does preserve all the decimal places but it turned my data from numeric to characters.
read.csv("data.csv", header = TRUE, sep = ",", quote = "\"", dec = ".", numerals = "no.loss", fill = TRUE, comment.char = "")