Friday 7 February 2020

distance - Is there an R equivalent of NEAR in ESRI ArcGIS?


I have 54 points in one data set A I have 300+ data points in a dataset B.


I wish to find the distance for each point in dataset-set B, to points in dataset A.


Nearest Neighbor packages appear to only find neighbors within a given data-set, not a second data set.


rdist was close, but I didn't want a matrix, just nearest.--"Given two sets of locations computes the full Euclidean distance matrix among all pairings or a sparse version for points within a fixed threshhold distance."


This looked good, saying "Read two geocoded point sets from Comma Separated Value (CSV) files into R data objects. Assign to each member of first point set the geographically closest point from second set" but is so dated (2010), so something more recent must exist...


Same issue with this



Other packages find distances between points and lines, points and polygons, etc. viz: http://cran.r-project.org/web/packages/geosphere/geosphere.pdf


The omission of P2P suggests I am missing something simple...




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...