View source: R/nearestNeighbor.R
| getKnn | R Documentation | 
K nearest neighbors in space based on position
getKnn(pos, k)
pos | 
 Position  | 
k | 
 Number of nearest neighbors  | 
Boolean matrix where value = 1 if two cells are considered adjacency ie. neighbors, else 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.