CHCN v1.5


Monthly downloads



Canadian Historical Climate Network

A compilation of historical through contemporary climate measurements scraped from the Environment Canada Website Including tools for scraping data, creating metadata and formating temperature files.

Functions in CHCN

Name Description
readLocalMaster A function to read a local copy of the master csv file
writeGhcn A simple wrapper to write.table
getMissingScrape A function to find which scrapes need to be done
createDataset A function to create a dataset from csv files on disk
writeInventory Writes inventory data in a format usable by RghcnV3 package
MASTER.STATION.LIST Name for the local version of the master station list
CHCN-package A package for Building Historical Climate data for Canada
FORMAT.URL A string for completing the http request
YEAR.URL A string for making the http request
STARTING.STATION.ID The starting unique Id created for these stations
STATION.URL url for getting master station list
getEmptyCsv A function to check for empty Csv files
downloadMaster Download the master list of stations
scrapeToCsv A function to scrape files to local csv files
createInventory Creates an inventory of all stations in the directory
formatGhcn creates a 14 column dataset for output
writeMonthlyStations Function to read the master list and write a monthly list of stations. This file is critical to the operation of the scraper.
DATA.DIRECTORY Directory for the final data storage
readMonthlyCsv reads the csv file that contains all the monthly stations
MONTHLY.STATION.LIST Name of the local file for Monthly stations
BASE.URL The "base" elements of the url for scraping
writeData Writes a file from a dataframe of climate data
No Results!

Last month downloads


Type Package
Date 2012-06-07
License GPL (>= 2)
LazyLoad yes
LazyData FALSE
Packaged 2012-06-08 17:15:33 UTC; steve
Repository CRAN
Date/Publication 2012-06-08 18:23:46

Include our badge in your README