Learn R Programming

chcd (version 0.1.1)

Access Canadian Historical Climate Data

Description

Provides easy access to historical climate data in Canada from R. Search for weather stations and download raw hourly, daily or monthly weather data across Canada from 1840 to present. Implements public API access as detailed at .

Copy Link

Version

Install

install.packages('chcd')

Monthly Downloads

155

Version

0.1.1

License

GPL (>= 3)

Maintainer

Dan Prisk

Last Published

July 25th, 2025

Functions in chcd (0.1.1)

dl_csv

Downloads a csv from the internet
get_climatedata

Get historical climate data for the specified time and place. The data returned will be raw data as originally reported. As many weather stations historically use manual entry to report this data this is likely to mean that data cleaning will be required for sensible usage.
get_station

Find climate station or stations from a given place. This also confirms if a given climate station ID is valid.
get_timecode

Converts a text based interval into a CHCD timecode
build_url

stations_near

Finds climate stations near to a given location.
test_climatefile

Given a file and a list of expected columns this will test to make sure our data looks good. Returns TRUE if all expected columns are present in the file, otherwise returns FALSE.
chcd-package

chcd: Access Canadian Historical Climate Data