Re: [R-sig-Geo] sum of point values within a grid square

2008-04-07 Thread Andrew James Hoskins
it corrected, meaning that the next CRAN release > should work. > > I also noted that fn is ignored for grids; it should work there too, so > that the lengthy > > g.poly <- as(g, "SpatialPolygons") > > wouldn't be required. This still needs some wo

[R-sig-Geo] sum of point values within a grid square

2008-04-02 Thread Andrew James Hoskins
Hi all, I'm trying to get the sum of value z for all points that fall within a grid square. I've been trying to use the overlay function on a grid converted to polygons, however, it returns the sum of the coordinates and the z values, how can I have it return only the sum of z? Also, once I have