[R-sig-Geo] Nearest neighbor for two spatial datasets

Kirill Müller kirill.mueller at ivt.baug.ethz.ch
Thu Apr 25 12:51:49 CEST 2013


Hello

I am looking for a fast implementation for finding, for each object in 
dataset A, the closest object of dataset B. A naive approach using 
gDistance et al. considers each pair AxB, but this can be improved by 
using a spatial index in B.

Is there such an implementation for R?

See also this question on StackOverflow: 
http://stackoverflow.com/questions/15992158/spatial-matching-of-big-datasets


Cheers

Kirill



More information about the R-sig-Geo mailing list