Format quantiles for the current COVID Forecast Hub
Source:R/create_hub_submissions.R
format_for_hub.RdThis function takes in a dataframe of quantiles and their values and the names of the columns specifying the date, location, value, quantile, and forecast date, and returns a hub formatted dataframe
Usage
format_for_hub(
quantiles,
date_col_name = "date",
value_col_name = "value",
loc_col_name = "location",
forecast_date_col_name = "forecast_date",
quantile_col_name = "quantile"
)Arguments
- quantiles
dataframe of quantiles containing columns with the specified names for date, value, location, forecast date, and quantile
- date_col_name
string indicating the column name for date of the forecasted quantity, default is
date- value_col_name
string indicating the column name for the value of the prediction at the date, default is
value- loc_col_name
string indicating the column name for the state abbreviation corresponding to the forecast location, default
location- forecast_date_col_name
string indicating the column name for the forecast date, default is
forecast_date- quantile_col_name
string indicating the column name for the quantile value, default is
quantile