[R] how to input a string without quote

snawy ben r at zijdeman.nl
Tue Nov 27 13:09:08 CET 2012


Wow, you are so lazy... But sometimes R is just designed for lazy guys...

##
f = function(a) {
    s = substitute(a)
    as.character(s)
}
##

Yihui

Cheers, Yihui, nearly 4 years after your post this still works like a charm.
ps: of course I am not lazy, I simply want to avoid error prone input! ;)



--
View this message in context: http://r.789695.n4.nabble.com/how-to-input-a-string-without-quote-tp872607p4650954.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list