ch_read_AHCCD_monthly: Reads AHCCD monthly file

View source: R/ch_read_AHCCD_monthly.R

ch_read_AHCCD_monthlyR 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 tested automatically as requires a file
Stoon_monthly_precip <- ch_read_AHCCD_monthly("mt4057120.txt")
NB_monthly_tmean <- ch_read_AHCCD_monthly("mm4045695.txt") 

CSHS-hydRology/CSHShydRology documentation built on Aug. 18, 2022, 4:44 p.m.