zoltr (version 0.2.2)

forecast_data: Gets a forecast's data

Description

Gets a forecast's data

Usage

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

Run this code
# NOT RUN {
  forecast_data_json <- forecast_data(conn, 46L, is_json=TRUE)
  forecast_data_csv <- forecast_data(conn, 46L, is_json=FALSE)
# }

Run the code above in your browser using DataLab