powered by
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)
a data frame.
A data frame similar to x, after renaming the last column.
x
names is the underlying function to rename columns.
names
icesTAF-package gives an overview of the package.
icesTAF-package
# NOT RUN { catage <- catage.taf # Rename last column catage <- plus(catage) # Shorter and less error-prone than names(catage)[names(catage)=="4"] <- "4+" # }
Run the code above in your browser using DataLab