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
  • 1,138
  • 1
  • 11
  • 25

0 Answers0