Skip to content

Instantly share code, notes, and snippets.

@rukku
Created February 12, 2012 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rukku/1805909 to your computer and use it in GitHub Desktop.
Save rukku/1805909 to your computer and use it in GitHub Desktop.
Second nearest neighbor with crossdist. NOT.
#Get second nearest neighbors using crossdist
crossnn2 <- crossdist(rp, ponderosa)
X.2 <- crossnn2[,2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment