starts_with | R Documentation |
These selection helpers match variables according to a given pattern.
starts_with()
: Starts with a prefix.
ends_with()
: Ends with a suffix.
contains()
: Contains a literal string.
matches()
: Matches a regular expression.
num_range()
: Matches a numerical range like x01, x02, x03.
starts_with(match, ignore.case = TRUE, vars = NULL) ends_with(match, ignore.case = TRUE, vars = NULL) contains(match, ignore.case = TRUE, vars = NULL) matches(match, ignore.case = TRUE, perl = FALSE, vars = NULL) all_of(x) any_of(x, ..., vars = NULL)
match |
A character vector. If length > 1, the union of the matches is taken. |
ignore.case |
If |
vars |
A character vector of variable names. If not supplied,
the variables are taken from the current selection context (as
established by functions like |
perl |
Should Perl-compatible regexps be used? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.