Skip to contents

rename values of a character vector according to renamings table

Usage

rename_values(
  x,
  renamings,
  old_name_col = "old_name",
  new_name_col = "new_name"
)

Arguments

x

character vector

renamings

data frame consisting of old and new names

old_name_col

name of column with original variable names

new_name_col

name of column with new variable names