dedup_get_stringDistances.Rd
Get string distances, optionally using multiple cores
dedup_get_stringDistances(
x,
y = x,
stringDistanceMethod = "osa",
parallel = FALSE,
silent = metabefor::opts$get("silent")
)
A data frame with the string distances between the elements, with the first vector determining the rows, and the second vector, the columns.
### Create two vectors with strings
a <- c("Apple", "Blueberry", "Cherry", "Date");
b <- c("Airplane", "Bus", "Cycle");
dedup_get_stringDistances(
a,
b
);
#> Error in dedup_get_stringDistances(a, b): To deduplicate, you need the `stringdist` package! You can install it with:
#>
#> install.packages('stringdist');