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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to