rename_column: rename_column

Description Usage Arguments Value

View source: R/util.R

Description

Quickly rename a column based on it's current name rather than location. This is helpful in certain instances when a name of a column cannot be determined in advance.

Usage

1
rename_column(df, old_name, new_name)

Arguments

df

the dataframe containing columns to be renamed

old_name

a string containing the name of the column to be renamed

new_name

a string containing the new name.

Value

the same dataset with a renamed column


iancj88/msuopa documentation built on May 17, 2019, 7:07 p.m.