filter_database | R Documentation |
Apply a list of filters to a database
filter_database( db, filters = NULL, columns = NULL, use_default_filters = TRUE, db_type = NULL, filters_first = FALSE )
db |
PARAM_DESCRIPTION |
filters |
a list of filters. Each entry should have a name that
represents a column name, associated with the values you want to keep.
Please see |
columns |
A dataframe that contains equivalence between Gamebirds
columns and the package ones. This will be passed to
|
use_default_filters |
Should the function add a default value to the
filters? See the object |
db_type |
The type of database used if database specific filters are defined, Default: NULL |
filters_first |
If default filters or database specific filters are used, should they be treated first?, Default: FALSE |
For time columns, i.e. 'year', 'month_code' and 'day_code', it is possible to select a period by providing a vector with two named values 'start' and 'end'. If a filter is NULL, it will be skipped.
A filtered dataframe
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.