0

I want to open a csv that has 5 columns, three of them have values ​​with three decimals and when I try to open it with "read.csv", one of them opens it with a decimal, another with none and the other with the three, like this:

             V1      V2      V3  V4  V5
1      377946.8 4109939 687.679 -89  15
2      377946.8 4109939 687.678 -89  23
3      377946.8 4109939 687.676 -89 123
4      377946.8 4109939 687.697 -89  84
5      377946.8 4109939 687.687 -89  30
6      377946.8 4109939 687.661 -89  46

can someone tell me what is the problem and the solution?

Henry Navarro
  • 943
  • 8
  • 34
  • Possible duplicate of [How do I import a CSV file in R?](https://stackoverflow.com/questions/13265153/how-do-i-import-a-csv-file-in-r) – Henry Navarro Nov 17 '17 at 13:09
  • How should it look like? (i.e. what is your problem) Did you control with `df$V1` ... ? See also https://stackoverflow.com/questions/2287616/controlling-number-of-decimal-digits-in-print-output-in-r – jogo Nov 17 '17 at 13:14
  • Have you tried other readers such as read.table and fread? – Emmanuel-Lin Nov 17 '17 at 14:04

0 Answers0