Hi
it is probably better to place this question on R-help list. Without
knowing your function f it is not possible to tell exactly what is
wrong, but probably the answer is in FAQ 7.17.
HTH
Petr
On 19 Jul 2006 at 23:15, WEN Songqiao wrote:
Send reply to: "WEN Songqiao" <sqwen@math.hkbu.edu.hk>
From: "WEN Songqiao" <sqwen@math.hkbu.edu.hk>
To: <s-news@lists.biostat.wustl.edu>
Subject: [S] function outer()
Date sent: Wed, 19 Jul 2006 23:15:50 +0800
Organization: HKBU
>
> Hi, everyone,
> I have a problem with the R function outer()
> f(x,y) is a bivariate functions, and I want to plot its surface. I
> use the R function outer(x,y,f) but it does'nt work with the
> following warning message: x<-1:3 y<-4:6 outer(x,y,f) " dim<- : dims
> [product 9] do not match the length of object [1]
>
> "
>
> why? Are there any other way to plot the surface of a bivariate
> function?
>
> ----------------------------------------------------------------- Mr.
> WEN Songqiao Department of Mathematics Hong Kong Baptist University
> Email: sqwen@math.hkbu.edu.hk
> -----------------------------------------------------------------
>
Petr Pikal
petr.pikal@precheza.cz
|