hcd_url: Generate URLs to Historical Climate Data records

Description Usage Arguments Value Author(s) Examples

Description

Form URLs to requested Canadian Historical Climate Data records.

Usage

1
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

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

gavinsimpson/canadaHCD documentation built on July 20, 2018, 5:30 a.m.