read_data: This reads in flusurvey data for a given year

View source: R/read_data.r

read_dataR Documentation

This reads in flusurvey data for a given year

Description

This reads different surveys and returns a list of data tables containing the surveys. It does minimal cleaning and conversion into R data formats. The csv files that should be provided can be obtained via SQL dump, e.g. \copy pollster_results_intake to 'filename.csv' csv header

Usage

read_data(files, year, ...)

Arguments

files

a (named!) list of files. The names stand for the surveys (e.g., "symptom", "background", "contact", etc.)

year

the year from which the data come

...

options to be passed to read.csv

Details

and similarly for weekly surveys

Value

a list of data tables with the data

Author(s)

seb


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