s-news
[Top] [All Lists]

Re: function outer()

To: "WEN Songqiao" <sqwen@math.hkbu.edu.hk>, <s-news@lists.biostat.wustl.edu>
Subject: Re: function outer()
From: "Rau, Roland" <Rau@demogr.mpg.de>
Date: Thu, 20 Jul 2006 14:56:26 +0200
Thread-index: AcarRpNoKrdWd8qrTi2bmuFVucyagwAtMQ8A
Thread-topic: [S] function outer()
Hi,
 

> -----Original Message-----
> From: s-news-owner@lists.biostat.wustl.edu 
> [mailto:s-news-owner@lists.biostat.wustl.edu] On Behalf Of 
> WEN Songqiao
> 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]   
>  
> "
Since you are using R, I guess it would be more appropriate to address
this question at the R-help Mailing List.
But rather check also the FAQ first, since this seems to be an often
encountered problem:
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-does-outer_0028_0029-be
have-strangely-with-my-function_003f

I hope this helps,
Roland

----------
This mail has been sent through the MPI for Demographic Research.  Should you 
receive a mail that is apparently from a MPI user without this text displayed, 
then the address has most likely been faked. If you are uncertain about the 
validity of this message, please check the mail header or ask your system 
administrator for assistance.


<Prev in Thread] Current Thread [Next in Thread>