Function used to update the characteristic values of a data frame containing both the original characteristic value (from Athena) and the value to add or replace it with (ADDCHARS). This function expects a data frame formatted using chars_sparsify.

chars_update(data, additive_target, replacement_target)

Arguments

data

A data frame containing columns AND their equivalent ADDCHARS columns.

additive_target

A tidyselect selection of Athena column names that should have characteristics added to them from their equivalent ADDCHARS column, which must also be present.

replacement_target

A tidyselect selection of Athena column names that should have characteristics replaced using their equivalent ADDCHARS column, which must also be present.

Value

A data frame with updated additive and replacement target columns.

See also