column_rename: Renaming columns to standard names

View source: R/clean_data.R

column_renameR Documentation

Renaming columns to standard names

Description

Using a filled out template, this function renames columns with certain content (as indicated in the template) to standard names, so different data frames can easily be joined together.

Usage

column_rename(data, col_config, template)

Arguments

data

dataframe with original column names

col_config

vector with the original column names, sorted by a standard

template

vector with the description of standard columns (this must be the File_info column in the excel template)

Value

dataframe with renamed columns


bvreede/OAmonitor documentation built on Sept. 9, 2023, 8:33 p.m.