Skip to content

Instantly share code, notes, and snippets.

@pontikos
Created May 14, 2017 19:38
Show Gist options
  • Save pontikos/36be809828db114de149886dfecb03d2 to your computer and use it in GitHub Desktop.
Save pontikos/36be809828db114de149886dfecb03d2 to your computer and use it in GitHub Desktop.
Convert distance matrix to 3 column matrix
melt(data.matrix(X))->m2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment