aw_5_days_forecast: Get 5 day forecast for a given location. The first part of...

Description Usage Arguments Value

View source: R/awapi.R

Description

Get 5 day forecast for a given location. The first part of the function gets the location key and passes it through the url containing the data

Usage

1
2
3
4
5
6
aw_5_days_forecast(
  lat,
  lon,
  tz = "Europe/London",
  apikey = Sys.getenv("awapi_key")
)

Arguments

lat

Latitude of location.

lon

Longitude of location.

tz

Default timezone is Europe/London. See http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc to find your timezone.

apikey

apikey needed to access data from the site.

Value

A data frame of daily weather forecasts for the given location.


tayoso2/awapi documentation built on Dec. 23, 2021, 7:50 a.m.