#' @export
str_dist <- function(v){
dit <- stringdist::stringdistmatrix(v, method = "jw")
x <- broom::tidy(dit)
# x <- x %>%
# mutate(item1 = v[item1], item2 = v[item2]) %>%
# select(item1, item2, distance)
x
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.