View source: R/renameByPairs.R
renameByPairs | R Documentation |
renameByPairs(df, currentNames, newNames)
df |
data.frame/tibble |
currentNames |
Character vector of current column names |
newNames |
Character vector of new column names |
A tibble
First created in 2020-12-11 while working in the MARC-KC/CovidDataEntry Repository
## Not run: names(iris) names(renameByPairs(iris, currentNames = c("Petal.Length", "Petal.Width"), newNames = c("pl", "pw"))) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.