I am reading in data from a .csv file with numbers of 5 or 6 decimals using the read_csv()
function. However, when I print the numbers in R they appear to be truncated.
My raw data looks like this:
4445.32433, 41.9194, 15625.68189,...
16.27793374, 3838.070873, 189.9342746
And when I print the data in R I get:
$ V3 : num 4445.32 16.28 1049.5 36.91 9.52 ...
$ V4 : num 41.9 3838.1 100.6 43.8 11.3 ...
and for other data columns, I got this:
$ V39 : num 1.02e-05 2.67e-01 1.16e-03 7.12e-04 2.14e-04 ...
$ V40 : num 0.221222 0.072993 0.004526 0.002724 0.000817 ...
Why is R truncating my data?
Am I able to prevent the truncation using read_csv()
? I tried using colClasses=c("double")
but seems to have no effect. Is there something else going on?
Thanks.