Skip to contents

selects and renames columns from a data frame according to a reference table

Usage

select_rename_cols(
  df,
  renamings,
  old_name_col = "old_name",
  new_name_col = "new_name"
)

Arguments

df

data frame with cols to be renamed

renamings

name of data frame with renamings

old_name_col

name of column with original variable names

new_name_col

name of column with new variable names