Reproducable example:
library(fuzzyjoin)
library(stringr)
df1 <- data.frame(x = c("Victoria Park Ave N & Pachino Blvd, Toronto, ON",
"The West Mall S & The Queensway, Toronto, ON",
"Willowdale Ave NS & Athabaska Ave, Toronto, ON"), y = c(1:3))
df2 <- data.frame(x = c("Victoria Park Ave / Pachino Blvd",
"Athabaska Ave / Willowdale Ave",
"The Queensway / The West Mall",
"Dundas/ Younge"
), z = c(66:69))
fuzzyjoin <- df2 %>%
fuzzy_left_join(., df1, by = "x", match_fun = str_detect )
expected output
I appreciate any suggestion