Re: [R] character strings and functions

From: Rolf Turner <r.turner_at_auckland.ac.nz>
Date: Thu, 20 Mar 2008 07:43:44 +1300

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}}

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. Received on Wed 19 Mar 2008 - 19:09:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Mar 2008 - 19:31:15 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive