R is not recognizing the csv file separators

5

I have some files to work with in R, with data in decimal numbers. Files that have separators such as ; are being read correctly, but one of them has , as the border between cells. I do not know how to fix this problem in Linux Ubuntu. Is there any way other than in the regional settings for the file to be in the correct format?

    
asked by anonymous 27.10.2017 / 14:17

1 answer

9

In read.csv , there are tab options. In the case of the file with , specify within function

dados <- read.csv("arquivo.csv", sep = ",")
    
27.10.2017 / 14:24