Description Usage Arguments Value Author(s) Examples
View source: R/get.weather_function.R
Returns weather metrics for specified Location and Date Range from the Open Weather Map API
1 | get.weather(key, lat, lon, daterange)
|
key |
string Your Open Weather Map API key. |
location |
Latitude, Longitude |
date |
Date range: "2021-07-01" or list of dates example - list("2021-07,01","2021-07-02") |
Table containing weather information.
Chloe Morgan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
Example One
apikey <- '222e546c9302a140b65a4aa0ab9566a2'
date <- "2021-09-11"
lat <- 53.480759
lon <- -2.242631
df <- get.weather(apikey,lat,lon,date)
Example Two
apikey <- '222e546c9302a140b65a4aa0ab9566a2'
date <- list("2021-09-11", "2021-09-10","2021-09-09")
lat <- 53.480759
lon <- -2.242631
df <- get.weather(apikey,lat,lon,date)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.