Character vector: pattern(s) to match anywhere in names of x.
starts_with
Character: pattern to match in the beginning of names of x.
ends_with
Character: pattern to match at the end of names of x.
ignore_case
Logical: If TRUE, well, ignore case.
return_index
Logical: If TRUE, return integer index of matches instead of names.
Author
EDG
Details
pattern, starts_with, and ends_with are applied and the union of all matches is returned.
pattern can be a character vector of multiple patterns to match.