Press "Enter" to skip to content

Adding a Suffix to a Column Name in R

Steven Sanderson renames a column or three:

When working with data frames in R, you might find yourself needing to modify column names to include additional information, such as a suffix. This can be particularly useful when merging datasets or when you want to ensure that column names are unique and descriptive.

Read on to see how.