[R] evaluate String
R. Michael Weylandt
michael.weylandt at gmail.com
Tue Mar 6 16:21:56 CET 2012
eval(parse(text = STRING))
but you often don't need to do this. A somewhat canonical quote in the R-world:
If the answer is parse() you should usually rethink the question.
-- Thomas Lumley, R-help (February 2005)
Michael
On Tue, Mar 6, 2012 at 10:06 AM, Lucas <lpchaparrovio at gmail.com> wrote:
> Hello to everyone.
>
> In MATLAB you can find a function that executes a text string.
> I have not find it in R.
> Does anyone knows a similiar function in R, i think a valuable tool.
> Thank you.
>
> Lucas.
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list