Error while reading csv file in R

后端 未结 11 2110
自闭症患者
自闭症患者 2021-02-07 10:37

I am having some problems in reading a csv file with R.

 x=read.csv(\"LorenzoFerrone.csv\",header=T)

Error in make.names(col.names, unique = TRUE) : 
      inva         


        
11条回答
  •  醉话见心
    2021-02-07 10:57

    You can always use the "Latin1" encoding while reading the csv:

     x = read.csv("LorenzoFerrone.csv", fileEncoding = "Latin1", check.names = F)
    

    I am adding check.names = F to avoid replacing spaces by dots within your header.

提交回复
热议问题