Michael, GREAT !! It worked.
Thanks a lot. Aniruddha. From: "R. Michael Weylandt" <michael.weyla...@gmail.com> To: Aniruddha Mukherjee <aniruddha.mukher...@tcs.com> Cc: R-help <r-help@r-project.org> 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)) Michael On Thu, Feb 23, 2012 at 8:30 AM, Aniruddha Mukherjee <aniruddha.mukher...@tcs.com> 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". > > My question is how to extract (or do something with) the content of rcom > so that it provides the mean value which I want. =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you [[alternative HTML version deleted]] ______________________________________________ R-help@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.