add_db_filters | R Documentation |
This functions looks into a filter list to add database specific filters (e.g. filters only applied to a banding dataset). The database specific fitlers should be defined in their own list. This function allows to define some filters applied only to a single database without having to define multiple objects.
add_db_filters(filters, db_type, filters_first = FALSE)
filters |
The filters list |
db_type |
A database type. Must be a valid entry for
|
filters_first |
Should the database filters be placed at the beginning of the list?, Default: FALSE |
The function looks in the filters list for entries following the
"DBTYPE_filters" pattern where DBTYPE is a long identifier returned by
get_db_type
. For example, for filters only applied to the
banding database, the filters should be named "banding_filters". If a
relevant filter is found, it is added to the filters list.
A filters list with the database specific filters added. All other database specific filters are removed if present.
get_db_type
filters <- list(SPEC = "ATBR", banding_filters=list(b.year=2010:2019, b.state_name = "Nunavut"), recoveries_filters = list(e.country_code = 'US', r.flyway_code = 1)) add_db_filters(filters, "b") add_db_filters(filters, "r")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.