pairs2matrix: Convert pair table to matrix

View source: R/utils.R

pairs2matrixR Documentation

Convert pair table to matrix

Description

This functions converts a data frame where each row is a unique pairwise comparison to a (dis)similarity matrix.

Usage

pairs2matrix(pairs, object_1 = object_1, object_2 = object_2, measure, diag)

Arguments

pairs

A table with pairwise comparisons

object_1

Name of the variable specifying the first object of the pair

object_2

Name of the variable specifying the second object of the pair

measure

Name of the (dis)similarity variable

diag

Something to fill the diagonal with

Value

A matrix


SWittouck/tidyorthogroups documentation built on Feb. 2, 2023, 12:45 a.m.