Hi eval(parse(text=a)) should do the trick :)
Cheers, Robin 2012/1/18 Ajay Askoolum <aa2e...@yahoo.co.uk> > Given > > a<-"c(1,2,3,4,5)" > > How can I evaluate the variable a to return a (numeric) vector comprising > of 1,2,3,4,5? Thanks. > > [[alternative HTML version deleted]] > > > ______________________________________________ > 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. > > [[alternative HTML version deleted]] ______________________________________________ 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.