powered by
Checks that entries in one character vector occur in another, suggesting corrections for mismatched elements.
MatchStrings(x, table, Fail = stop, max.distance = 0.5, ...)
MatchStrings() returns the elements of x that occur in table.
MatchStrings()
x
table
Character vectors, in which all elements of x are expected to occur in table.
Function to call if a mismatch is found.
Arguments to agrep(), used to propose possible matches to the user.
agrep()
Martin R. Smith (martin.smith@durham.ac.uk)
Other string parsing functions: EndSentence(), MorphoBankDecode(), RightmostCharacter(), Unquote()
EndSentence()
MorphoBankDecode()
RightmostCharacter()
Unquote()
tree <- BalancedTree(8) MatchStrings(c("t1", "tip2", "t3"), TipLabels(tree), Fail = message)
Run the code above in your browser using DataLab