s-news
[Top] [All Lists]

function outer()

To: <s-news@lists.biostat.wustl.edu>
Subject: function outer()
From: "WEN Songqiao" <sqwen@math.hkbu.edu.hk>
Date: Wed, 19 Jul 2006 23:15:50 +0800
Organization: HKBU
Reply-to: "WEN Songqiao" <sqwen@math.hkbu.edu.hk>
 
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>