stringmatch | R Documentation |
Generate a string distance score for all combinations of two vectors
stringmatch(string1, string2, trainingset = NULL, feature.importances = FALSE)
string1 |
A character vector |
string2 |
A character vector |
trainingset |
If NULL, use the base model. Otherwise, a data frame with columns A, B, and y corresponding to string1, string2, and a training label |
feature.importances |
If TRUE, returns feature importances. |
A data frame of rows length(string1) * length(string2) with columns for each string distance metric as well as a model-produced score
stringmatch(string1 = c("hello", "goodbye"), string2 = c("alpha", "beta"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.