pairs_bridge: bridge different pair datasets

Description Usage Arguments Details Value

View source: R/pairs_make.R

Description

Form bridges between datasets by pairing across different sets. Currently, this function samples the first snippet from bridge_size pairs randomly drawn from each input dataset, and then forms all pairwise combinations between all of these. This is overkill, perhaps, but ensures good linkage between the pairs drawn both within and across datasets.

Usage

1
pairs_bridge(..., bridge_size = 3)

Arguments

...

data.frames of pairs created by pairs_regular_make() or pairs_gold_make()

bridge_size

how many snippets to pair from one set to another

Details

So for instance, with three datasets of 10 pairs each, 3 pairs would be drawn from each dataset, for 9 total pairs, forming 9 choose 2 =

Value

a new paired dataset of all combinations of bridging pairs between input datasets


kbenoit/sophistication documentation built on May 12, 2021, 5:57 a.m.