collateHourly: collates individual hourly files for multiple stations

Description Usage Arguments Details Value Author(s) References

View source: R/collateHourly.R

Description

CRN daily date is hosted on the ftp as a collection of individual files for every station for every year. Once that data has been downloaded downloadCRN the individual files can be collated into one monolithic file with this function. In addition, a metadata file is created.

Usage

1

Arguments

directory

The default directory is the directory where the source datafiles are downloaded to by the function downloadCRN. This should not be changed.

Details

The function will examine the directory and read the datafiles in that directory. It will create two output files and write them into your working directory: A data file and a metadata file. A date code is added to the file name of the data file.

Value

The side effect is writing two datafiles for the hourly data: a file of data for all the stations and variable. And a metadata file.

Author(s)

Steven Mosher

References

The following urls give the necessary background and variable names. The readme is essential. http://www.ncdc.noaa.gov/crn/ ftp://ftp.ncdc.noaa.gov/pub/data/uscrn/ ftp://ftp.ncdc.noaa.gov/pub/data/uscrn/products/hourly02/README.txt


crn documentation built on May 29, 2017, 1 p.m.

Search within the crn package
Search all R packages, documentation and source code