get_pairwise_distance | R Documentation |
Given a dist object, extract the relevant pairwise distances. .
get_pairwise_distance(x, metadata, g = NULL, simplify_output = TRUE)
x |
a dist object, denoting the pairwise distances between samples. |
metadata |
a vector or table. If a table is given, |
g |
Defaults to |
simplify_output |
Defaults to |
a data.frame
with at least four columns: "to", "from", "dist" and "group". As well as any additional information provided with metadata
argument.
c.exp <- clr_lite(vola_genus_table)
c.dist <- dist(t(c.exp))
get_pairwise_distance(x = c.dist, metadata = vola_metadata, g = "ID")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.