pick_filter: List and pick existing filters

View source: R/pick_filter.R

pick_filterR Documentation

List and pick existing filters

Description

Lists and lets the user interactively pick a filter from lists.

Usage

pick_filter(type = NULL)

Arguments

type

string: (optional) type of filter to create query string for. Options are c("resource", "specieslist" , "layer"). Species lists are waiting development from the API side.

Value

a string ready to be places in the argument ‘fq’ in function occurrences.

See Also

occurrences for download reasons; sbdi_config

Examples

## Not run: 
fq_str <- pick_filter("resource") #"data_resource_uid:dr5"
x <- occurrences(taxon="genus:Accipiter", 
                  download_reason_id=10,
                  fq=fq_str)

## End(Not run)

biodiversitydata-se/SBDI4R documentation built on Feb. 23, 2024, 4:15 p.m.