Access Canadian Historical Climate Data


[Up] [Top]

Documentation for package ‘chcd’ version 0.1.1

Help Pages

build_url Build a valid URL for downloading a file from CHCD. Follows the format detailed here <https://collaboration.cmc.ec.gc.ca/cmc/climate/Get_More_Data_Plus_de_donnees/>.
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
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.