Message-ID: <OF7C8F335C.E56CBEC5-ONC1257957.002D37F8-C1257957.002D7A72@precheza.cz>
Date: 2011-11-29T08:16:26Z
From: PIKAL Petr
Subject: Transforming a string into a command
In-Reply-To: <A27399ED-8C43-48DF-B330-E9F5E5FC4119@comcast.net>
> On Nov 29, 2011, at 2:00 AM, Xu Wang wrote:
>
> > Why don't the following two commands work?
> >
> > eval(parse(text=s))
> > eval(as.expression(s))
> >
Hm, try to set an object s before calling.
Regards
Petr
> ______________________________________________
> 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.