[R] string into command
Benilton Carvalho
bcarvalh at jhsph.edu
Thu Mar 29 01:18:22 CEST 2007
cmd = "mylist = list(a = 5, b = 7)"
(eval(parse(text=cmd)))
b
On Mar 28, 2007, at 11:38 AM, Brian Dolan wrote:
> Hello,
>
> I would like to take the string
>
> "mylist = list(a = 5, b = 7)"
>
> and evaluate it as a list. I have attempted to use parse and
> several other functions with no success.
>
> Thanks for your time.
>
> -brian dolan
>
> ~~~
>
> may all your sequences converge
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
More information about the R-help
mailing list