Closed mjkanji closed 2 years ago
After further relfexion, it is probably more appropriate to only keep value
, transform_value
and scenario
as parameters and enforce the use of standard column names for the other columns that are in functions parameters.
The parameters are renamed with the suffix _col
.
Instead of having multiple arguments like
ind_col = "ind"
, we could continue to provide the ability to have non-standard names for columns by simply moving these mapping to a singlecol_names
orcol_mappings
argument that isNULL
by default (meaning we expect the standard column names).The user could then provide a named vector/list to provide a mapping of non-standard column names to the standard names. This could then be passed to
dplyr::rename()
to maintain the same functionality without the overhead of maintaining a long list of arguments of this type.