[R] making a grid of points

Ross Boylan ross at biostat.ucsf.edu
Thu Dec 7 20:18:28 CET 2006


On Fri, 2006-12-08 at 08:09 +1300, Peter Alspach wrote:
> Ross
> 
> I think you want
> 
> ?expand.grid
> 
> BTW, help.search('grid') finds this.
> 
> Cheers ......
> 
> Peter Alspach
> 
I can't believe I missed that--my eye just jumped to all the stuff in
the grid package.  Thank you.
> 
> > -----Original Message-----
> > From: r-help-bounces at stat.math.ethz.ch
> > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Ross Boylan
> > Sent: Friday, 8 December 2006 8:03 a.m.
> > To: r-help
> > Subject: [R] making a grid of points
> >
> > I'd like to evaluate a function at each point on a 2 or 3-D
> > grid.  Is there some function that already does this, or
> > generates the grid of points?
> >
> > My search has led me to the grid and lattice packages, and I
> > found a reference to the sp package (e.g., SpatialGrid) for
> > this.  There are things in there that might be relevant, but
> > at first blush many of them are embedded in other concepts
> > (grobs, shingles, rugs) and don't obviously solve the problem.
> >
> > I know this is not a hard thing to program, but I suspect
> > someone has already done it.  Any pointers?
> >
> > Thanks.
> > --
> > Ross Boylan                                      wk:  (415) 514-8146
> > 185 Berry St #5700                               ross at biostat.ucsf.edu
> > Dept of Epidemiology and Biostatistics           fax: (415) 514-8150
> > University of California, San Francisco
> > San Francisco, CA 94107-1739                     hm:  (415) 550-1062
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
> 
> ______________________________________________________
> 
> The contents of this e-mail are privileged and/or confidential to the
> named recipient and are not to be used by any other person and/or
> organisation. If you have received this e-mail in error, please notify
> the sender and delete all material pertaining to this e-mail.
> ______________________________________________________
-- 
Ross Boylan                                      wk:  (415) 514-8146
185 Berry St #5700                               ross at biostat.ucsf.edu
Dept of Epidemiology and Biostatistics           fax: (415) 514-8150
University of California, San Francisco
San Francisco, CA 94107-1739                     hm:  (415) 550-1062




More information about the R-help mailing list