Skip to contents
library(iidda.analysis)
#> Loading required package: iidda
#> Loading required package: dplyr
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
#> Loading required package: jsonlite
#> Loading required package: tibble
#> Loading required package: tidyr

What is flexi_filter for?

The International Infectious Disease Data Archive (IIDDA) api is designed to allow users to obtain filtered subsets of the data. The function iidda.analysis::flexi_filter enables filtering IIDDA datasets with regex queries. flexi_filter is [currently] bare-bones; searches that involve filtering on more than one field simultaneously usually have to be be handled by joining the results of two or more separate calls to flexi_filter.

What does flexi_filter return?

flexi_filter can query any of the fields from different types of IIDDA datasets. The type of dataset queried is specified with the argument response_type, and can take the values "metadata" for metadata headers for each flat datafile, "columns" for field names in the flat data files themselves, or "data_dictionary" for definitions of the field names in either the flat data files or their associated metadata.