Description Usage Arguments Details Value Functions
Find the names of variable(s) matching a given pattern. If there are no matches, display an error message and stop.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | find_all_vars(
input_data,
...,
suffix = NULL,
.strict = FALSE,
verbose = getOption("verbose")
)
find_var(input_data, pattern, suffix = NULL, verbose = getOption("verbose"))
find_id_var(input_data, ...)
find_qty_var(input_data, ...)
find_year_var(input_data, ...)
|
input_data |
(tabular data) must have one or more columns |
... |
variables to find (explicitly) |
suffix |
retained for backwards compatibility, but prefer 'pattern' instead |
.strict |
passed to 'tidyselect::eval_select()' |
verbose |
(logical) display messages |
pattern |
(character) regular expression (also see [glob2rx()]) |
'find_var()' stops if more than one variable in 'input_data' matches 'pattern'.
(character) name of variable(s) matching 'pattern'.
find_all_vars
: Find one or more
find_var
: Find exactly one
find_id_var
: Find variable ending in "_id"
find_qty_var
: Find variable ending in "qty"
find_year_var
: Find variable named "year" or ending in "yr"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.