View source: R/nearest_stations_noaa.R
nearest_stations_nooa | R Documentation |
Returns a data frame of meteorological stations with their coordinates and distance from a given location based on the noaa website. The returned list is valid only for a given day.
nearest_stations_nooa( country, date = Sys.Date(), add_map = TRUE, point = NULL, no_of_stations = 10, ... )
country |
country name; use CAPITAL LETTERS (e.g., "SRI LANKA"), if not used function will found selected number of nearest stations without country classification |
date |
optionally, a day when measurements were done in all available locations; current Sys.Date used by default |
add_map |
logical - whether to draw a map for a returned data frame (requires maps/mapdata packages) |
point |
a vector of two coordinates (longitude, latitude) for a point we want to find nearest stations to (e.g. c(80, 6)) |
no_of_stations |
how many nearest stations will be returned from the given geographical coordinates |
... |
extra arguments to be provided to the |
A data.frame with number of nearest station according to given point columns describing stations parameters
(e.g. ID station, distance from point, geographic coordinates, etc.) where each row represent a measurement,
each station which has a measurements on selected date. If add_map = TRUE
additional map of downloaded data is added.
nearest_stations_nooa(country = "SRI LANKA", point = c(80, 6), add_map = TRUE, no_of_stations = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.