MatchStrings | R Documentation |
Checks that entries in one character vector occur in another, suggesting corrections for mismatched elements.
MatchStrings(x, table, Fail = stop, max.distance = 0.5, ...)
x , table |
Character vectors, in which all elements of |
Fail |
Function to call if a mismatch is found. |
max.distance , ... |
Arguments to |
MatchStrings()
returns the elements of x
that occur in table
.
Martin R. Smith (martin.smith@durham.ac.uk)
Other string parsing functions:
EndSentence()
,
MorphoBankDecode()
,
RightmostCharacter()
,
Unquote()
tree <- BalancedTree(8)
MatchStrings(c("t1", "tip2", "t3"), TipLabels(tree), Fail = message)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.