Learn R Programming

CHCN (version 1.5)

Canadian Historical Climate Network

Description

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.

Copy Link

Version

Install

install.packages('CHCN')

Monthly Downloads

57

Version

1.5

License

GPL (>= 2)

Maintainer

Last Published

June 8th, 2012

Functions in CHCN (1.5)

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