R/forecast-daily.R

Defines functions get_forecast_daily

Documented in get_forecast_daily

#' Get daily forecast data up to 16 days.
#'
#' @inheritParams get_current
#'
#' @return list
#' @export
#'
#' @examples \dontrun{
#'    # 9 day forecast
#'    result <- get_forecast_daily("London", cnt = 9)
#'    forecast_frame <- result$list
#' }
get_forecast_daily <- function(city = NA, ...) {
  get <- owmr_wrap_get("forecast/daily")
  get(city, ...) %>%
    owmr_parse() %>%
    owmr_class("owmr_forecast_daily")
}

Try the owmr package in your browser

Any scripts or data that you put into this service are public.

owmr documentation built on Jan. 11, 2020, 5:08 p.m.