extract_data: Extract flusurvey data

View source: R/extract_data.r

extract_dataR Documentation

Extract flusurvey data

Description

This extracts flusurvey data for a given number of surveys and years (all by default).

Usage

extract_data(data, surveys = "all", years = "all", join = TRUE, ...)

Arguments

data

either a (named) list of (annual, named) lists of surveys, or (much easier) a filename that contains said list.

surveys

the surveys to extract (e.g., "background", "symptom", "contact" or a combination thereof), "all" for all of surveys that can be found; note that any surveys that don't exist in all years will be dropped

years

the years to extract, "all" for all years

join

whether to join the data into one big data.table in the end

...

parameters to be passed to merge_data, especially 'clean' (see documentation of merge_data, by default all cleaning will be performed, set 'clean' to NULL to get the raw data).

Value

a data.table (if join is TRUE) or a list of data.tables (if join is FALSE) with the data

Author(s)

seb


sbfnk/flusurvey documentation built on May 19, 2023, 10:44 p.m.