Skip to content
Prev 25413 / 29559 Next

Optimizing spatial query in R

The biggest bottleneck was creating a SpatialPolygons object and
calculating gDistance. After computing the SP object outside the for loop,
the run time came down dramatically (see SO post).

Cheers,
Roman

On Mon, Feb 20, 2017 at 10:56 AM, Chris Reudenbach <
reudenbach at uni-marburg.de> wrote: