[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)
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.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> 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