[R] Can you turn a string into a (working) symbol?

andrewH ahoerner at rprogress.org
Sun Nov 4 03:56:52 CET 2012


Ah!  Excellent! That will be most useful.  And sorry about the typo. 

I found another function in a different discussion that also seems to work,
at least in most cases I have tried.  I do not at all understand the
difference between the two.
doppel <- function(x) {eval(parse(text=x))

However, neither one seems to work on the left hand side of a "<-", a "<<-", 
or an "=".

Again, my thanks.--andrewH



--
View this message in context: http://r.789695.n4.nabble.com/Can-you-turn-a-string-into-a-working-symbol-tp4648343p4648365.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list