rename_variables: Rename variables to harmonized names

Description Usage Arguments Value

View source: R/data.R

Description

First, changes variable names by removing the product-specific component, thereby leaving harmonized names. Then, overwrite the input df in the global environment with an updated df.

Usage

1
rename_variables(df, df_type)

Arguments

df

Data frame whose columns to rename.

df_type

Character. For consumption data, one of : "unitesFixes", "releve", "unitesautre1", "autre1releve", "unitesautre2", "autre2releve" For production data, one of: "unitesFixes", "unitesAutre1", "unitesAutre2"

Value

Data frame with whose columns have harmonized names.


arthur-shaw/nsuoutils documentation built on Dec. 19, 2021, 4:41 a.m.