-2
pollutantmean("*G:\Coursera_JHU_Data_Science_Specialization\R Programming\Air Pollution\specdata\","sulphate")

Error: '\C' is an unrecognized escape in character string starting ""*G:\C"

Sotos
  • 51,121
  • 6
  • 32
  • 66
Rajesh Dixit
  • 5
  • 1
  • 2
  • 3
    To use a \, you need to escape it - with another backslash. So \\. Or, you can convert it to forward slash /. – Roman Luštrik Jan 27 '17 at 09:12
  • 1
    Possible duplicate of [How do I deal with special characters like \^$.?\*|+()\[{ in my regex?](http://stackoverflow.com/questions/27721008/how-do-i-deal-with-special-characters-like-in-my-regex) – SymbolixAU Jan 27 '17 at 09:31

1 Answers1

-1

Try using another backward slash as shown below

enter image description here

A user
  • 1,060
  • 3
  • 19
  • 47