Learn R Programming

rosario (version 0.1.1)

temp_overlap_df: Convert a square overlap matrix to a tidy pairwise data frame

Description

Tidies a symmetric overlap (or distance) matrix into a three-column tibble/data frame with pairs and values.

Usage

temp_overlap_df(mat)

Value

A data frame with columns item1, item2, and distance

(terminology follows stats::as.dist()).

Arguments

mat

Square numeric matrix (typically from temp_overlap_matrix()).

Examples

Run this code
d <- temp_overlap_matrix(ex1)
temp_overlap_df(d)

Run the code above in your browser using DataLab