Learn R Programming

owmr (version 0.8.2)

find_city: Find city by name or coordinates.

Description

Either search for city by name or fetch weather data for a number of cities around geo point.

Usage

find_city(city = NA, ...)

Arguments

city

city name (and country code)

...

see owm api documentation, pass lat and lon to search by coordinates

Value

list of weather data for matches

See Also

find_cities_by_geo_point

Examples

Run this code
# NOT RUN {
   find_city("London,UK")
   find_city(lat = 51.50853, lon = -0.12574, cnt = 5)
# }

Run the code above in your browser using DataLab