R: Writes a file from a dataframe of climate data
Writes a file from a dataframe of climate data
Description
A function that simply writes the data in a dataframe
to the data directory. Typically this would be your master data
file containing all stations and all data
Usage
writeData(Data, filename = "EnvCanadaData.dat", directory = DATA.DIRECTORY)
Arguments
Data
The data created by scraping and processing all the
web page requests
filename
Default file name for your master data file
directory
Default directory for your data
Details
Function merely wraps a write.csv
call and creates
a data directory if you need one
Value
Side efffect is a file is written
Author(s)
Steven Mosher
Examples
## Not run:
writeData(data)
## End(Not run)
Results