hcd_url: Generate URLs to Historical Climate Data records

hcd_urlR Documentation

Generate URLs to Historical Climate Data records

Description

Form URLs to requested Canadian Historical Climate Data records.

Usage

hcd_url(station, timescale = c("monthly", "daily", "hourly"), year, month)

Arguments

station

character; one or more HCD station IDs.

timescale

character; the timescale of the requested Historical Climate Data records.

year

numeric; vector of one or more years. Needed for daily or hourly data only.

month

numeric; vector of one or months. Needed for hourly data only.

Value

A character vector containing URLs for the requested stations and time scales.

Author(s)

Gavin L. Simpson

Examples

urls <- hcd_url(c(2855, 1707), timescale = "monthly")
urls
head(urls$url)

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