Re: [R] How can I ran an R command whcih is present as the content of a character object

2012-02-23 Thread Aniruddha Mukherjee
Michael, GREAT !! It worked. Thanks a lot. Aniruddha. From: "R. Michael Weylandt" To: Aniruddha Mukherjee Cc: R-help Date: 02/23/2012 07:10 PM Subject: Re: [R] How can I ran an R command whcih is present as the content of a character object eval(parse(text = rcom)) Micha

Re: [R] How can I ran an R command whcih is present as the content of a character object

2012-02-23 Thread R. Michael Weylandt
eval(parse(text = rcom)) Michael On Thu, Feb 23, 2012 at 8:30 AM, Aniruddha Mukherjee wrote: > I have an object called rcom which was created by the command rcom > <-"mean(mat_rix$COL_1)". Also the data-frame mat_rix is well defined with > numeric values in its column 1 and its name is "COL_1".

[R] How can I ran an R command whcih is present as the content of a character object

2012-02-23 Thread Aniruddha Mukherjee
I have an object called rcom which was created by the command rcom <-"mean(mat_rix$COL_1)". Also the data-frame mat_rix is well defined with numeric values in its column 1 and its name is "COL_1". My question is how to extract (or do something with) the content of rcom so that it provides the m