View source: R/load_forecasts_repo.R
load_forecast_files_repo | R Documentation |
Read in a set of forecast files from a repository without rows having NULLs in value column.
load_forecast_files_repo(
file_paths,
locations = NULL,
types = NULL,
targets = NULL,
hub = c("US", "ECDC", "FluSight")
)
file_paths |
paths to csv forecast files to read in. It is expected that the file names are in the format "*YYYY-MM-DD-<model_name>.csv". |
locations |
a vector of strings of fips code or CBSA codes or location names,
such as "Hampshire County, MA", "Alabama", "United Kingdom".
A US county location names must include state abbreviation.
Default to |
types |
Character vector specifying type of forecasts to load: |
targets |
character vector of targets to retrieve, for example
|
hub |
character vector indicating the hub from which to load forecasts.
Possible options are |
The model_name in the file name will be used for the value of the model column in the return result.
data frame with columns model, forecast_date, location, horizon, temporal_resolution, target_variable, target_end_date, type, quantile, value, location_name, population, geo_type, geo_value, abbreviation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.