forecast_data: Gets a forecast's data

Description Usage Arguments Value Examples

Description

Gets a forecast's data

Usage

1
forecast_data(zoltar_connection, forecast_id, is_json)

Arguments

zoltar_connection

A 'ZoltarConnection' object as returned by new_connection

forecast_id

ID of a forecast in zoltar_connection's forecasts

is_json

A boolean specifying whether the forecast is in 'list' or 'data.frame' format

Value

Forecast data in the requested format - either a 'list' or a 'data.frame'

Examples

1
2
3
4
5
## Not run: 
  forecast_data_json <- forecast_data(conn, 46L, is_json=TRUE)
  forecast_data_csv <- forecast_data(conn, 46L, is_json=FALSE)

## End(Not run)

reichlab/zoltr documentation built on Dec. 16, 2019, 4:09 a.m.