Skip to content
Prev 5913 / 29559 Next

Converting SpatialPointsDataFrame to SpatialGridDataFrame

On Thu, 11 Jun 2009, Rainer M Krug wrote:

            
Please see the thread started by Karla Falk yesterday. overlay() will tell 
you which raster cells the points fall in, but you cannot just "burn" 
across unless you know definitely that hit raster cells have only one hit, 
otherwise you'll need tapply (or table for counting) to tally the point 
values by hit cell. I think that is the step you need to add. It'll take 
some attempts to find a recipe that works for your specific case, it 
usually does, but then works.

Roger