barcaweather: Obtain the temperature for any day in the coming week in...

Description Usage Arguments Details Value Examples

Description

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.

Usage

1
2
barcaweather(day, metric = FALSE,
  private_key = "019b0ffe039ab1061724964decc1a73e")

Arguments

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

Details

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.

Value

a float that represents the temperature for the given day

Examples

1
2
weather_tmr <- "1"
barcaweather(weather_tmr) # returns the weather for tomorrow in fahrenheit

kwajiehao/barcaweather documentation built on May 8, 2019, 3:13 a.m.