Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is it possible to use greek letters in R in strings

Tags:

r

Is it possible to write with greek letters in R, as you can in Mathematica? In a string would be enough. It would be nice to use greek letters with rSymPy.

Not talking about plots, more interested in using greek letters in strings.

like image 203
Frank Avatar asked Oct 22 '25 05:10

Frank


1 Answers

You can use unicodes to add greek letters to your string.

> str <- paste("\U03B1","\U03B2","\U03B6","\U03B4","\U03C0","\U03A8")
> str
[1] "α β ζ δ π Ψ"

Hope this answers your question.

like image 59
Ashish Avatar answered Oct 23 '25 20:10

Ashish