getPairs: Gets Pairs from Distances

Description Usage Arguments Value

Description

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.

Usage

1

Arguments

dist

The distance matrix describing the distance between locations.

k

The number of closest neighbors to be located for each lcoation.

Value

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.



Search within the snht package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.