hcd_hourly: Download hourly Historical Climate Data records

hcd_hourlyR Documentation

Download hourly Historical Climate Data records

Description

Hourly Historical Climate Data for stated station IDs are downloaded from the Government of Canada's Historical Climate Data website.

Usage

hcd_hourly(station, year, month, collapse = TRUE, progress = TRUE, ...)

Arguments

station

character or numeric; one or more HCD station IDs.

year

numeric; vector of one or more years

month

numeric; vector of one or months

collapse

Logical; if TRUE and multiple stations are requested a single data frame is returned, formed by row-binding the data for each station and prepending a station identifier variable.

progress

Logical; if TRUE, a bar is shown indicating progress in downloading station data from the HCD website.

...

Further arguments passed to [read_hcd().

Value

A tibble::tbl_df containing the requested hourly climate data.

Author(s)

Gavin L. Simpson


gavinsimpson/canadaHCD documentation built on Sept. 23, 2023, 3:13 a.m.