absorb_key_args: Rename key columns according to the key arguments
Description
absorb_key_args() is superseded by function_map(), whose mappers
rename key columns themselves.
Call it in a handwritten mapper. If a key argument such as x names a
column of data, it renames that column to the key argument's name, so
that the rest of the mapper finds it.
data, possibly with columns renamed. Reassign the result to
data.
Arguments
data
Data frame passed to the mapper.
reported
String. Names of the key arguments.
key_cols_call
Optionally, a named character vector that maps key
argument names to the columns of data that they refer to, such as c(x = "mean"). By default, it is read from the key arguments of the calling
mapper.