File path issues in R using Windows (“Hex digits in character string” error)

前端 未结 11 2045
我寻月下人不归
我寻月下人不归 2020-11-28 19:06

I run R on Windows, and have a csv file on the Desktop. I load it as follows,

x<-read.csv(\"C:\\Users\\surfcat\\Desktop\\2006_dissimilarity.csv\",header=T         


        
11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 19:31

    Replace back slashes \ with forward slashes / when running windows machine

提交回复
热议问题