Get and process target data for a given Hub.
Source:R/update_hub_target_data.R
update_hub_target_data.RdThis function pulls, formats and save NHSN and NSSP data for use in the Hub.
Usage
update_hub_target_data(
base_hub_path,
disease,
as_of = lubridate::today(),
nhsn_first_weekending_date = lubridate::as_date("2024-11-09"),
included_locations = hubhelpr::included_locations,
legacy_file = FALSE,
nssp_update_local = FALSE
)Arguments
- base_hub_path
Path to the base hub directory.
- disease
Disease name ("covid" or "rsv").
- as_of
As-of date of the data pull. Default is the system date as determined by
lubridate::today().- nhsn_first_weekending_date
First week-ending date to include for the NHSN dataset. Default value is "2024-11-09".
- included_locations
Vector of location codes to include in the output. Default value
hubhelpr::included_locations.- legacy_file
Logical. Whether to write legacy CSV output (default: FALSE).
- nssp_update_local
Logical. Whether to update NSSP data from local file
auxiliary-data/latest.csv(default: FALSE).