Message-ID: <CAAcGz9_uEzN_6RN_eKgSXFpPwb8_Z7gV4rvRLR+qEwd8k1c_1Q@mail.gmail.com>
Date: 2016-05-19T21:59:21Z
From: Michael Sumner
Subject: For each point, distance to nearest point in second dataset
In-Reply-To: <CAFWQgOkTVsRoYeymPjs3=-_FtuhRqpBBhB-ybgbR0NTckhSDAA@mail.gmail.com>
Use nabor package, it takes a little to learn but is crazy fast.
Happy to show if you make a relevant example.
Mike
On Fri, May 20, 2016, 06:42 Nick Eubank <nickeubank at gmail.com> wrote:
> Hi All,
>
> Trying to an equivalent to the "nearest" tool in ArcGIS for two
> SpatialPointDataFrames. I can do the naive implementation by calculating
> all pairwise distances using gDistance and taking the min, but I have some
> huge datasets and was looking for something more efficient. (For example,
> here's a trick with knearneigh for points in same dataset (
>
> http://gis.stackexchange.com/questions/132384/distance-to-nearest-point-for-every-point-same-spatialpointsdataframe-in-r
> )).
>
> Any suggestions?
>
> Thanks!
>
> Nick
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Dr. Michael Sumner
Software and Database Engineer
Australian Antarctic Division
203 Channel Highway
Kingston Tasmania 7050 Australia
[[alternative HTML version deleted]]