Gets Pairs from Distances
For each location, we wish to determine the k closest locations. This function takes the distance matrix and computes the returns a list of the k closest locations to each individual location.
The distance matrix describing the distance between locations.
The number of closest neighbors to be located for each lcoation.
A named list. Each element of the list corresponds to a particular location, and the value at element i is the k closest locations to location i.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.