Skip to contents

Fucntion to translate the columns of a dataset with regards to those in the documentation file. Empty column names are kept, for Tableau purposes

Usage

tableau_colnames(
  dataframe,
  fieldname,
  fieldname_export,
  keep_other_colnames = T
)

Arguments

dataframe

A dataframe for which column names need to be translated.

fieldname

A column with fieldnames the dataframe will be changed to

fieldname_export

a column with the original names of the dataframe, that wil be changed

keep_other_colnames

Default TRUE, whether to keep empty columns names.

Value

a dataframe with translated column names