Description Usage Arguments Details Value Author(s) See Also Examples
The entire dataset of Environment Canada has 25 columns of data: Tmax,Tmin,Tave, quality flags and other climate data. For use with the package RghcnV3 a 14 column format is required. This format is similar to the 14 column format of GHCN V2. Id is in the first column, followed by Year, followed by 12 measures, one for each month of the year in column 2. This function takes a column and creates a dataset in that format
1 | formatGhcn(data, dataColumn = 7)
|
data |
A dataset that has been created by |
dataColumn |
The column of the data you want to reformat.
column = 7, will collate the Mean air temperature from a
full 25 column dataset. Use |
GHCN data is in 14 column or 51 column format. Every row
of data has an Id, a year and 12 months of data. This function takes
the datasets of this package and creates formats that are readable
by the package RghcnV3
. The function createDataset
is
used to read from csv files and create a complete dataset with 25
columns of data. Typically you want to work with one data item
at a time. This function allows you to extract and reformat a
column of that data
Returns a 14 column dataframe
Steven Mosher
1 2 3 4 5 6 | ## Not run:
data <-createDataset()
Mean <-formatGhcn(data)
writeGhcn(Mean)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.