Like the title says, I am trying to replace plus-minus signs with the equivalent LaTeX command "\pm" using R
I have tried the following with no success:
gsub("±", "\\pm", "±", fixed = FALSE)
"pm"
gsub("\u00b1", "\\pm", "\u00b1", fixed = FALSE)
"pm"
What am I doing wrong?