Fix Misspellings in a Data frame

PHOTO EMBED

Sun Mar 07 2021 02:01:46 GMT+0000 (Coordinated Universal Time)

Saved by @Checkmate363 #r

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  
content_copyCOPY

I had a number of spelling mistakes in a data set with countries listed