link: Use the selected pairs to generate a linked data set

View source: R/link.R

linkR Documentation

Use the selected pairs to generate a linked data set

Description

Use the selected pairs to generate a linked data set

Usage

link(pairs, selection = NULL, x = NULL, y = NULL, all_x = TRUE,
  all_y = TRUE, ...)

Arguments

pairs

a pairs object, such as generated by pair_blocking

selection

a logical variable with the same length as pairs has rows, or the name of such a variable in pairs. Pairs are only selected when select is TRUE. When missing attr(pairs, "selection") is used when available.

x

the first data set; when missing attr(pairs, "x") is used.

y

the second data set; when missing attr(pairs, "y") is used.

all_x

return all records from x.

all_y

return all records from y.

...

ignored.

Details

Uses the selected pairs to link the two data sets to each other. Renames variables that are in both data sets.


djvanderlaan/reclin documentation built on Oct. 4, 2022, 7:03 p.m.