powered by
Tidies a symmetric overlap (or distance) matrix into a three-column tibble/data frame with pairs and values.
temp_overlap_df(mat)
A data frame with columns item1, item2, and distance
item1
item2
distance
(terminology follows stats::as.dist()).
stats::as.dist()
Square numeric matrix (typically from temp_overlap_matrix()).
temp_overlap_matrix()
d <- temp_overlap_matrix(ex1) temp_overlap_df(d)
Run the code above in your browser using DataLab