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!
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!