rename_cols: Rename a series of columns in a dataframe

Description Usage Arguments Examples

Description

Given a dataframe and a series of key-value pairs, replaced all the key matches within the column names of the dataframe with their corresponding values, and returns a data frame as a result.

Usage

1

Arguments

data

The input dataset

...

A series of key value pairs (in character form) of target variables and what they currently are in the dataset

Examples

1
2
# Turns the Girth column in trees into an Alpha column
rename_cols(trees, 'Alpha' = 'Girth')

seanchrismurphy/emacalc documentation built on May 12, 2019, 2:03 p.m.