select_rename_cols: selects and renames columns from a data frame according to a...

View source: R/prepare_functions.R

select_rename_colsR Documentation

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

Description

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


KWB-R/dwc.wells documentation built on July 13, 2022, 9:36 p.m.