stringmatch: Generate a string distance score for all combinations of two...

View source: R/stringmatch.R

stringmatchR Documentation

Generate a string distance score for all combinations of two vectors

Description

Generate a string distance score for all combinations of two vectors

Usage

stringmatch(string1, string2, trainingset = NULL, feature.importances = FALSE)

Arguments

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.

Value

A data frame of rows length(string1) * length(string2) with columns for each string distance metric as well as a model-produced score

Examples

stringmatch(string1 = c("hello", "goodbye"),
             string2 = c("alpha", "beta"))

aaronrkaufman/stringmatch documentation built on Nov. 30, 2022, 7:38 p.m.