Description Usage Arguments Details Value Constraints See Also Examples
compute distance metrics between strings.
1 2 3 4 5 |
a |
character or FLVector of characters |
b |
character or FLVector of characters |
method |
can be |
p |
penality factor for jaro-winkler if p==0 jaro distance is computed |
caseFlag |
logical or 0/1 indicating if comparision should be case sensitive |
vlength |
optional, length of strings to compare used for hamming |
stringdistmatrix computes the string distance matrix with rows according to a and columns according to b.
FLMatrix of string distances
row vectors are not supported currently.
stringdist
for R function reference
implementation.
1 2 3 4 5 6 7 | widetable <- FLTable("iris", "rownames")
flv <- widetable[1:10,"Species"]
resultflmatrix <- stringdistmatrix("xyz",flv)
resultflmatrix <- stringdistmatrix(c("xyz","abc"),flv,method="lv",caseFlag=1)
resultflmatrix <- stringdistmatrix("xyz",flv,method="hamming",vlength=4)
resultflmatrix <- stringdistmatrix(flv,flv,method="jw",p=1)
resultflmatrix <- stringdistmatrix(flv,c("xyz","abc"),method="jw")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.