Learn R Programming

ROpenWeatherMap (version 1.1)

get_weather_forecast: get weather forecast data for one location

Description

get weather forecast data for one location

Usage

get_weather_forecast(api_key, cityID = NA, city = "", country = "", coordinates = NA)

Arguments

api_key
Open weather map API key
cityID
city ID
city
name of city
country
name of country
coordinates
(lat,lon) coordinates of the location of your interest

Value

data frame giving weather forecast data for one location

Examples

Run this code
## Not run: 
# data=get_weather_forecast(api_key,city="guwahati")
# ## End(Not run)

Run the code above in your browser using DataLab