plus | R Documentation |
Rename the last column in a data frame, by appending a "+"
character.
This is useful if the last column is a plus group.
plus(x)
x |
a data frame. |
A data frame similar to x
, after renaming the last column.
If the last column name already ends with a "+"
, the original data
frame is returned without modifications.
names
is the underlying function to rename columns.
TAF-package
gives an overview of the package.
catage <- catage.taf
# Rename last column
catage <- plus(catage)
# Shorter and less error-prone than
names(catage)[names(catage)=="4"] <- "4+"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.