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

前端 未结 11 2042
我寻月下人不归
我寻月下人不归 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:35

    A simple way is to use python. in python terminal type

    r"C:\Users\surfcat\Desktop\2006_dissimilarity.csv" and you'll get back 'C:\Users\surfcat\Desktop\2006_dissimilarity.csv'

提交回复
热议问题