Skip to content
Prev 4422 / 29559 Next

subsetting

Pieter,

the easiest in terms of the least mental exercise might be to form a
polygon from the four points and then overlay that with the grid. This
will likely be too slow and/or memory intensive.

The more efficient way would be to compute the row and column index
ranges from the bounding box, and index the SpatialGridDataFrame with
that. gridparameters(x) gives you the necessary information for this.
--
Edzer
Pieter Beck wrote: