Match the first n letters to supplied arguments
match_letters.RdCase insensitive matching of argument to possibilities provided in ellipsis.
Arguments
- x
(character)to match on- ...
(character)vectors to match against- n
(numeric)how many characters ofxto use in matching. Set toNULLto use all- multiple
(logical)are multiple matches allowed? IfFALSE(Default) only the first match is returned.- ignore.case
if
FALSE, the pattern matching is case sensitive and ifTRUE, case is ignored during matching.- capitalize
(logical)whether to capitalize the result