Learn R Programming

plumbr (version 0.6.10)

duplex_data_linker: Duplex linking

Description

A utility for creating linking functions that operate in both directions (full duplex).

Usage

duplex_data_linker(delegate, from_data, to_data =
  from_data)

Arguments

delegate

The linking function that performs the mapping, such as match_any_linker.

from_data

A data.frame of keys

to_data

A data.frame of keys

Value

A two-way linking function as described in the details.

Details

The generated linker function takes two arguments: from_selection and new_selection. If new_selection is specified, new_selection is mapped from to_data to from_data. Otherwise, from_selection is mapped from from_data to to_data.