Starting R: Error: '\U' used without hex digits in character string starting “”C:\U"

1.6K    Asked by Aryangupta in Data Science , Asked on Jun 6, 2021

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

x<-read.csv("C:UserssurfcatDesktop2006_dissimilarity.csv",header=TRUE)

but the R gives the following error message

Error: 'U' used without hex digits in character string starting "C:U"

So what's the correct way to load this file. I am using Vista

Answered by bhagwati dubey

To solve error: 'u' used without hex digits in character string starting "'c:u" you can follow the below common:


x<-read.csv("C:\Users\surfcat\Desktop\2006_dissimilarity.csv",header=TRUE)
OR
x<-read.csv("C:/Users/surfcat/Desktop/2006_dissimilarity.csv",header=TRUE)

Your Answer

Interviews

Parent Categories