Description Usage Arguments Value Examples
Rename columns or do nothing if the names don't match
1 | renameColumns(x, values)
|
x |
An object for which |
values |
A character vector where names are the old column names
and values are the new column names. Uses |
x
with the updated column names if they are present. Does not
fail if the column names are missing.
1 2 | x <- data.frame(a=factor(LETTERS[1:5]), b=factor(runif(5, 0, 1)))
renameColumns(x, c(a='c'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.