[R] Problem with 'expression'

Perez Martin, Agustin agustin.perez at umh.es
Tue May 11 16:31:21 CEST 2004


DeaR useRs:

Excuses by my English.
I have a problem with 'expression' function.

For example:

	a<-expression(exp(-x^2))
	b<-expression(exp(x^2))

And I want to calculate:

	a*b

And R returns:

	Error in a * b : non-numeric argument to binary operator

I don't know what happend.
Which is the way to making operations with expressions?
Thanks.




More information about the R-help mailing list