get_wx: Retrieve METAR weather from a US ASOS station

Description Usage Arguments Details Examples

View source: R/get_wx.R

Description

Retrieve METAR weather from a US ASOS station

Usage

1
get_wx(stn = NULL, start = Sys.Date(), end = start, out_tz = "GMT")

Arguments

stn

character scalar of US ASOS station from which to retrieve weather; see find_wx_stns using option asos_only == TRUE.

start

character or Date scalar OR vector (see Details) of start date ("YYYY-MM-DD")

end

character or Date scalar of end date ("YYYY-MM-DD"); optional (defaults to same day as start)

out_tz

time zone specification to be used for output. System-specific (see timezones. Default is "GMT" (UTC; Universal Time, Coordinated).

Details

A vector of dates can also be passed to the start argument if desired, in which case the end argument is ignored.

Examples

1
2
get_wx("ATL", "2017-12-25")
get_wx("AHN", c("2017-11-01", "2017-12-01"))

adamdsmith/nrsmisc documentation built on Aug. 13, 2019, 2:14 p.m.