Re: [R] Problem with 'expression'

About this list Date view Thread view Subject view Author view Attachment view

From: Tamas Papp (tpapp@axelero.hu)
Date: Wed 12 May 2004 - 01:31:33 EST


Message-id: <20040511153133.GA3473@localhost>

On Tue, May 11, 2004 at 05:13:24PM +0200, Tamas Papp wrote:

> > a<-expression(exp(-x^2))
> > b<-expression(exp(x^2))
> >
> > And I want to calculate:
> >
> > a*b
>
> Use
>
> t<-2
> expression(a, list(x=t))*expression(b, list(x=t))

Of course, I meant "eval" instead of "expression". Sorry.

Tamas

-- 
Tamás K. Papp
E-mail: tpapp@axelero.hu
Please try to send only (latin-2) plain text, not HTML or other garbage.

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:09 EST