hcd_daily: Download daily Historical Climate Data records

hcd_dailyR Documentation

Download daily Historical Climate Data records

Description

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

Usage

hcd_daily(station, year, collapse = TRUE, progress = TRUE, ...)

Arguments

station

Character or numeric; one or more HCD station IDs.

year

numeric; vector of one or more years

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 tbl_df containing the requested monthly climate data

Author(s)

Gavin L. Simpson


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