renameSets | R Documentation |
Rename data.frame columns of list of data.frames.
renameSets(x, newNames = NULL)
x |
a data.frame or a list with data frames. |
newNames |
named character vector or list with new names as values, and old names as names. |
depending on input, the renamed data.frame or the list with renamed data.frames.
## Not run:
x <- data.frame(a = letters, n = 1:length(letters))
x
renameSets(x[1:3, ], c(a = "A", n = "N"))
renameSets(x[1:3, ], list(a = "B", n = "M"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.