[R] Problem with 'expression'

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

From: Perez Martin, Agustin (agustin.perez@umh.es)
Date: Wed 12 May 2004 - 00:31:21 EST


Message-id: <5AFDDD57E2771B409224CD858CC6DE0D02DAB409@mailer-e051.umh.es>

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.

______________________________________________
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