ch_read_AHCCD_monthly {CSHShydRology}R Documentation

Reads AHCCD monthly file

Description

This program reads an Adjusted and Homogenized Canadian Climate Data (AHCCD) data of precipitation or temperatures. The values are arranged as year x month, which makes them difficult to read using standard R functions.

Usage

ch_read_AHCCD_monthly(monthly_file = NULL)

Arguments

monthly_file

Required. Name of the file to be read.

Value

If successful, returns the values in a dataframe, consisting of the year, the month, the value and the data code.

Author(s)

Kevin Shook

References

Any use of the data must cite Mekis, E and L.A. Vincent, 2011: An overview of the second generation adjusted daily temperature and precipitation dataset for trend analysis in Canada. Atmosphere-Ocean, 49 (2), 163-177.

See Also

ch_read_AHCCD_daily

Examples

## Not run: 
# Don't run these examples as use of the dummy
# files will cause error messages

Stoon_monthly_precip <- ch_read_AHCCD_monthly("mt4057120.txt")
NB_monthly_tmean <- ch_read_AHCCD_monthly("mm4045695.txt") 
## End(Not run)

[Package CSHShydRology version 1.4.0 Index]