How can I avoid the "±" character disappearing from my script every time I restart the R session?

I used the Plus-minus ( ±) sign several times according to the given script, inserting it directly. For instance:

paste("Mean", "SD", sep = " ± ")

However, when I restart my R session, a symbol appears instead ?, for example:

paste("Mean", "SD", sep = " ? ")

What am I doing wrong? should I use another method to enter this character in my R script?

+4
source share
1 answer

Try the following:

paste("Mean", "SD", sep = " \U00B1 ")
+6
source

Source: https://habr.com/ru/post/1685096/


All Articles