Rename a column

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

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')
#> Sepal_Length Sepal_Width family rank #> 1 5.8 4.0 setosa 1 #> 2 5.7 4.4 setosa 2