rename | R Documentation |
This function finds old names and replace them with new ones.
rename(x, old, new)
x |
an object from which names can be extracted see |
old |
a vector of character strings of old names. |
new |
a vector of character strings of new names. |
tb <- data.frame(var1 = 2, var2 = "B") rename(tb, "var1", "uptake") rename(tb, c("var1", "var2"), c("uptake", "type"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.