get_buoy_wx: Retrieve historical METAR weather from NOAA buoy

Description Usage Arguments Examples

View source: R/get_buoy_wx.R

Description

Retrieve historical METAR weather from NOAA buoy; see http://www.ndbc.noaa.gov/. This function is a thin wrapper around buoy mainly for multiple year queries and output formatting

Usage

1
2
get_buoy_wx(buoy = NULL, years = as.POSIXlt(Sys.Date())$year + 1900,
  out_tz = "GMT")

Arguments

buoy

character or integer scalar of buoy from which to retrieve weather. Browse at http://www.ndbc.noaa.gov/ or see buoy_stations.

years

integer vector of years for which data are required

out_tz

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

Examples

1
2
3
4
5
6
## Not run: 
wx <- get_buoy_wx("DPIA1", years = 2017, out_tz = "America/Chicago")
# Current year, in GMT
wx <- get_buoy_wx(41063)

## End(Not run)

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