library(tidyverse) df$column <- df$column str_to_title(df$column) #Standardize caps #Two options df$column <- str_replace(df$column, "old", "new") #Option 1, uses str_replace df$column <- gsub("old", "new", df$column) #Option 2, uses str_replaceĀ
library(tidyverse) df$column <- df$column str_to_title(df$column) #Standardize caps #Two options df$column <- str_replace(df$column, "old", "new") #Option 1, uses str_replace df$column <- gsub("old", "new", df$column) #Option 2, uses str_replaceĀ