Here’s an example of fuzzy-matching strings in R that I shared on StackOverflow. In stringdist_join, the max_dist argument is used to constrain the degree of fuzziness.
library(fuzzyjoin)
library(dplyr)
#> #> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> #> filter, lag
#> The following objects are masked from 'package:base':
#> #> intersect, setdiff, setequal, union
library(knitr)
small_tab = data.frame(Food.Name = c('Corn', 'Squash', 'Peppers'), Food.Code = c(NA, NA, NA))
large_tab = data.