Description Usage Arguments Details Value Examples
The darksky api, among other functions, allows one to retrieve the temperature of any day in the coming week. This might be useful in helping one to plan events, or to prepare what kind of clothing to wear.
1 2 | barcaweather(day, metric = FALSE,
private_key = "019b0ffe039ab1061724964decc1a73e")
|
day |
an integer number of days from today for which temperature is desired |
metric |
a boolean that determines whether the temperature returned is in celsius (metric = TRUE) or fahrenheit (metric = FALSE) |
private_key |
private key for use with darksky api |
This package uses the darksky api to get the temperature for any day in the coming week. The temperature is calculated by taking the mean between the daily maximum and minimum temperatures.
a float that represents the temperature for the given day
1 2 | weather_tmr <- "1"
barcaweather(weather_tmr) # returns the weather for tomorrow in fahrenheit
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.