replyr_rename: Rename a column

Description Usage Arguments Examples

View source: R/underscoreReplacements.R

Description

Rename a column

Usage

1
replyr_rename(.data, ..., newName, oldName)

Arguments

.data

data object to work on

...

force later arguments to bind by name

newName

character new column name

oldName

character old column name

Examples

1
2
3
4
d <- data.frame(Sepal_Length= c(5.8,5.7),
                Sepal_Width= c(4.0,4.4),
                Species= 'setosa', rank=c(1,2))
replyr_rename(d, newName = 'family', oldName = 'Species')

WinVector/replyr documentation built on Oct. 22, 2020, 8:07 p.m.