build_data_csv: Create a data object from CSV files.

View source: R/data-fcts.R

build_data_csvR Documentation

Create a data object from CSV files.

Description

User provides CSV files that records the number of cases, (optionally) hospital admissions and viral concentration in wastewater for a specific location. The various data source do not have to have matching date.

Usage

build_data_csv(path.cases, path.hosp, path.ww, hosp.type, case.date.type)

Arguments

path.cases

String. Path to the CSV file with two columns named date and value that records the number of cases with respect to time.

path.hosp

String. Path to the CSV file with two columns named date and value that records the number of hospitalizations with respect to time.

path.ww

String. Path to the CSV file with two columns named date and value that records the viral concentration in wastewater with respect to time.

hosp.type

String. Type of hospitalization provided in path.hosp: NULL, 'hosp.adm' for hospital admissions, 'hosp.occ' for hospital occupancy.

case.date.type

String. Type of date which cases are based on: 'report' for reported date and 'episode' for episode date (date of symptoms onset).

Value

A list of dataframes.


phac-nml-phrsd/wem documentation built on June 6, 2024, 11:06 p.m.