relpair_conn_comps: Find connected components amongst the related pairs

View source: R/relpair_conn_comps.R

relpair_conn_compsR Documentation

Find connected components amongst the related pairs

Description

This is a little utility function that actually gets called from within compile_related_pairs() so we leave it as an internal function. This takes in the tibble Pairs, and then spits out a tibble that looks just the same, except that after the id_1 and id_2 columns it now has a column called conn_comp that gives the connected component index of the two pair members.

Usage

relpair_conn_comps(Pairs)

Arguments

Pairs

a tibble with the related pairs. It must have columns id_1 and id_2


eriqande/CKMRpop documentation built on Jan. 25, 2024, 2:10 p.m.