I would like to create an arrow as a character variable in R
. (Specifically, I would like a right arrow, a left arrow, and a double-headed arrow.) I have looked up some lists of unicode symbols for arrows (e.g., here), but I have not been able to figure out the syntax to set a character variable to be an arrow.
As an example of what I am looking for, if I input "\U00B5"
I get the character variable "µ"
. What is the analogous code for a unicode arrow?