noaa_url | R Documentation |
Get NOAA Weather Forcast URL for a Location
Get NOAA Weather Forcast for a Location
noaa_url(lat, lon, format = c("xml", "html")) read_noaa(url, tz = timezone())
lat, lon |
(numeric) A lattitude and the longitude. |
format |
(character) Should an XML or an HTML document be retrieved? |
url |
(character) A NOAA URL to download and parse. |
tz |
(character) The timezone for all retrieved timestamps. |
'noaa_url()' returns a URL (character).
'read_noaa()' returns a [tibble::tibble] [base::data.frame] with forecasted weather data.
coord <- c(lat=37.475400, lon=-121.861300) url <- noaa_url(coord) print(url) wx <- read_noaa(url) print(wx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.