0

I'm want to add \ to a string in R like this:

paste("23", "\%", sep = "")

Such that the string reads: "23\%"

But I get the error: Error: '\%' is an unrecognized escape in character string starting ""\%"

Any idea on to correct this?

Thank you!

Sharif Amlani
  • 886
  • 7
  • 17

0 Answers0