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...