[R] How to print a variable with in double quotes

sailu Yellaboina bio.sailu at gmail.com
Fri Sep 4 18:18:55 CEST 2009


I want to print a variable with in double quotes.
 For example

x = 10 ;
x  ;    #prints 10
"x" ;  #prints x
\"x\" ; # Error: unexpected input in "\"

I want to the out put as    '10'  or "10"

Thank you
Sailu Yellaboina




More information about the R-help mailing list