dist2longdf | R Documentation |
Convert dist object to long data.frame
dist2longdf(inDist)
inDist |
'dist' object |
implemented from https://stackoverflow.com/a/23476844/895544
'data.frame' in the long format with all pairwise values
a <- data.frame(x = rnorm(100), y = rnorm(100))
d <- dist(a)
df <- dist2longdf(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.