Description Usage Arguments Value Examples
Using either an individual city or a list of cities, this will find a reference point for each location and return the k-nearest weather stations to that reference point.
1 | kNStations(city.list, station.list, k = 5)
|
city.list |
List of cities. Format should be: "City, State", or "City, Country" |
station.list |
Full list of ISD stations included in the package |
k |
The number of stations to return |
Returns the k-nearest weather stations in the full ISD station.list
1 2 3 4 5 6 | ## Not run:
data(stations)
cities <- c("Nairobi, Kenya", "Tema, Ghana", "Accra, Ghana", "Abidjan, Ivory Coast")
k.n.stations <- kNStations(cities, station.list, 5)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.