quantile_data_frame_from_forecast_data {zoltr} | R Documentation |
Converts forecast data from Zoltar's native list
format to a quantile data.frame
Description
Converts forecast data from Zoltar's native list
format to a quantile data.frame
Usage
quantile_data_frame_from_forecast_data(forecast_data)
Arguments
forecast_data |
Forecast data as a |
Value
A data.frame
from forecast_data that's the same as data_frame_from_forecast_data()
does except
only includes point and quantile rows, and with this header: 'location', 'target', 'type', 'quantile',
'value', i.e., 'unit' -> 'location' and 'class' -> 'type'
Examples
## Not run:
forecast_data <- jsonlite::read_json("docs-predictions.json")
data_frame <- quantile_data_frame_from_forecast_data(forecast_data)
## End(Not run)
[Package zoltr version 1.0.1 Index]