Description Usage Arguments Details Value
View source: R/select_helpers.R
Like matches
, this function selects variables by by name.
However, it uses wildcard, aka globbing patterns instead of regular expressions.
1 |
pattern |
Globbing pattern |
ignore.case |
If |
vars |
A character vector of variable names.
When called from inside |
Use ?
to match a single character, and *
to match any number of
characters, including none. The pattern is anchored at the start and end of the
string, meaning it must start at the start, and end at the the end.
This function uses glob2rx
to convert the globbing pattern
to a regex,
An integer vector given the position of the matched variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.