relpair_conn_comps: Find connected components amongst the related pairs

Description Usage Arguments

View source: R/relpair_conn_comps.R

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

1

Arguments

Pairs

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


CKMRpop documentation built on July 17, 2021, 5:07 p.m.