This function applies crossmap transformation to a dataset, transforming
data based on specified mapping rules.
Usage
apply_xmap(.data, .xmap, ..., values_from, keys_from = names(.xmap$.from))
diagnose_apply_xmap(.data, .xmap, ..., values_from, keys_from = NULL)
Arguments
- .data
The dataset to transform.
- .xmap
An `xmap_tbl` object.
- ...
(reserved)
- values_from
A `tidyselect` expression of columns in `.data`
with values to transform
- keys_from
A `tidyselect` expression specifies the column in `.data`
to match with `.xmap$from`
Value
A tibble with transformed data.