[R] evaluate String

David Winsemius dwinsemius at comcast.net
Tue Mar 6 17:03:37 CET 2012


On Mar 6, 2012, at 10:24 AM, Lucas wrote:

> PERFECT
> Thank you so much.
>

If by 'execute' you meant translate a name for a function then you  
should also look at do.call.

-- 
David.

>
> Lucas.
>
> 2012/3/6 R. Michael Weylandt <michael.weylandt at gmail.com>
>
>> 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.
>>
>
> 	[[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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list