Learn R Programming

owmr (version 0.8.2)

get_forecast: Get 3h forecast data.

Description

Get 3h forecast data.

Usage

get_forecast(city = NA, ...)

Arguments

city

city name or id

...

see owm api documentation, you can also skip parameter city and pass lat (latitude) and lon (longitude) or zip (zip code) instead

Value

list

Examples

Run this code
# NOT RUN {
   result <- get_forecast("Kassel", units = "metric")
   names(result)
   get_forecast("London", cnt = 10)
   get_forecast(lat = -22.90278, lon = -22.90278, cnt = 3, units = "metric")
# }

Run the code above in your browser using DataLab