Match the first n
letters to supplied arguments
match_letters.Rd
Case 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 ofx
to use in matching. Set toNULL
to 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