complete_pairs: Complement the pairs of a pair table

View source: R/utils.R

complete_pairsR Documentation

Complement the pairs of a pair table

Description

For each unique pair of objects (a, b), the function adds a row for the pair (b, a) with the same information.

Usage

complete_pairs(pairs, object_1, object_2)

Arguments

pairs

Data frame where each row represents a pair of objects

object_1

Variable defining the first object (unquoted)

object_2

Variable defining the second object (unquoted)

Value

A complemented table


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