Description Usage Arguments Value Examples
View source: R/distance_matrix.R
Create a data frame of distances between groups of items.
1  | dist_groups(d, g)
 | 
d | 
 A distance matrix object of class '"dist"'.  | 
g | 
 A factor representing the groups of objects in 'd'.  | 
A data frame with 6 columns. "Item1" and "Item2" identify the items compared, using the label if available. Likewise, "Group1" and "Group2" identify the groups of the items. "Label" is a factor giving a convenient label for the type of comparison. Finally, "Distance" contains the distance of interest.
1 2 3  | data(relmbeta_dist)
data(relmbeta)
head(dist_groups(relmbeta_dist, relmbeta$Diet))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.