insightsengineering/cards

Add a column coalesce/renaming function?

ddsjoberg opened this issue · 1 comments

I was recently QCing a table using cards. I am using shuffle_ard() because I like the way it renames the grouping variables and makes one column out of two (easier on the eyes!).

For my purposes, it would have been nice to also similarly rename the variable/variable_level columns.

Can we add a utility to do this? The utility could be used in ard_shuffle() to do the group renaming.

@bzkrouse

Proposals for function name:

  • rename_ard_columns()
  • consolidate_ard_column_names()