parse(text=x)[[1]]
is what I wanted, thank you
Duncan Murdoch <[EMAIL PROTECTED]> wrote: On 10/12/2006 10:03 AM, johan Faux
wrote:
> Hello,
>
> x<- "something(a+b) + c"
>
> is there any function F such that
>
> F(x) gives me the unevaluated value of x, i.e. something(a+b)+c
>
> I would appreciate any help on this
parse(text=x) or parse(text=x)[[1]], depending whether you want an
"expression" containing that expression, or the "call" that it actually
corresponds to.
quote(something(a+b) + c)
would get you directly to the latter.
Duncan Murdoch
__________________________________________________
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.