[R] character strings and functions

Rolf Turner r.turner at auckland.ac.nz
Wed Mar 19 19:43:44 CET 2008


On 19/03/2008, at 6:14 PM, Benilton Carvalho wrote:

> get("x1")

	Not quite the answer to the question that Erin posed.

	The right answer is

		get(x[1])
>

			cheers,

				Rolf Turner

> On Mar 19, 2008, at 1:07 AM, Erin Hodgess wrote:
>> Dear R People:
>>
>> I have a function x1
>>
>> Next, I have a character vector x which has one element, "x1".
>>
>> How would I retrieve the original function x1 from the character  
>> vector, please?
>>
>> thanks,
>> Erin
>>
>>
>> -- 
>> Erin Hodgess
>> Associate Professor
>> Department of Computer and Mathematical Sciences
>> University of Houston - Downtown
>> mailto: erinm.hodgess at gmail.com
>>
>> ______________________________________________
>> 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.
>
> ______________________________________________
> 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.


######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}



More information about the R-help mailing list