Error: ‘\R’ is an unrecognized escape in character string starting “C:\R”

You have to escape the \ since it is itself an escape character.

read.table('C:\\xxx\\classes\\R_Prog\\specdata\\data.csv') head(data) }

Leave a Comment