Error while reading csv file in R

后端 未结 11 2123
自闭症患者
自闭症患者 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:49

    Typically an encoding issue. You can try to change encoding or else deleting the offending character (just use your favorite editor and replace all instances). In some cases R will spit the char location, for example:

    invalid multibyte string 1847

    Which should make your life easier. Also note that you may be required to repeat this process several times (deleting all offending characters or trying several encodings).

提交回复
热议问题