s-news
[Top] [All Lists]

Re: function outer()

To: <s-news@lists.biostat.wustl.edu>
Subject: Re: function outer()
From: "WEN Songqiao" <sqwen@math.hkbu.edu.hk>
Date: Thu, 20 Jul 2006 16:21:54 +0800
Organization: HKBU
References: <002c01c6ab46$3937b390$b70ab69e@PC20026570>
Reply-to: "WEN Songqiao" <sqwen@math.hkbu.edu.hk>
thank you all.
I have joined in the R  mailing list and  got the right answer. 
 
S.-Q., WEN
 
 
----- Original Message -----
Sent: Wednesday, July 19, 2006 11:15 PM
Subject: [S] function outer()

 
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
-----------------------------------------------------------------
<Prev in Thread] Current Thread [Next in Thread>