selectlocs | R Documentation |
Generic (helper) function to select locations that comply with user-specified conditions, from either a dataset (dataframe or lazy object) with the variable's values or from a dataframe with summary statistics.
selectlocs(
data,
data_type = c("data", "summary"),
eval_fun = NULL,
eval_args = NULL,
conditions,
verbose,
list
)
data |
Either:
|
data_type |
A string.
Either |
eval_fun |
The evaluation function to be run, if |
eval_args |
The arguments of the evaluation function, as a named list,
if |
conditions |
A dataframe. It must have the following columns:
Each condition is one row of the dataframe.
The dataframe should have at least one, and may have many.
Each combination of |
verbose |
Logical.
If |
list |
Logical.
If |
The result of the evaluation function (eval_fun
) must produce a
dataframe, formatted as declared by the second bullet under the
data
argument.
If list = FALSE
: a tibble with one column loc_code
that
provides the locations selected by the conditions.
If list = TRUE
: a list of tibbles that extends the previous end-result
with intermediate results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.