0

To the command

read.csv("C:\Documents and Settings\Felhasználó\Asztal\aktuális\vizsga_lekeres.csv")

I received the following error message:

Error in file(file, "r") : cannot open the connection In addition: Warning messages:

1: '\D' is an unrecognized escape in a character string

2: '\F' is an unrecognized escape in a character string

3: '\A' is an unrecognized escape in a character string

4: unrecognized escapes removed from "C:\Documents and Settings\Felhasználó\Asztal\aktuális\vizsga_lekeres.csv"

5: In file(file, "r") : cannot open file 'C:Documents and SettingsFelhasználóAsztalktuálisizsga_lekeres.csv': Invalid argument

What does "unrecognized escape" mean? How to fix it so that I can read this csv file correctly into R?

Rich Scriven
  • 97,041
  • 11
  • 181
  • 245

1 Answers1

0

Did you try:

read.csv("C:/Documents and Settings/Felhasználó/Asztal/aktuális/vizsga_lekeres.csv")
sachinv
  • 492
  • 2
  • 5
  • 18
  • 1
    Maybe also tell them what the problem is, since they asked. *What does "unrecognized escape" mean?* – Rich Scriven May 17 '16 at 16:00
  • These 2 links should help you [link](https://stat.ethz.ch/R-manual/R-devel/library/base/html/Quotes.html) and [link](https://cran.r-project.org/doc/manuals/R-lang.html#Literal-constants) – sachinv May 17 '16 at 16:08
  • I switched the direction of the slashes and it now worked. Thanks very much! – coffito May 17 '16 at 17:52
  • Accept the answer if that serves your purpose – sachinv May 17 '16 at 19:11