[R] Problem with 'expression'

Tamas Papp tpapp at axelero.hu
Tue May 11 17:31:33 CEST 2004


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 at axelero.hu
Please try to send only (latin-2) plain text, not HTML or other garbage.




More information about the R-help mailing list