writeInventory: Writes inventory data in a format usable by RghcnV3 package
Description
The RGhcnV3 package expects certain fields -- Id, lat,lon
in a specific order. This write function insures the data is read
in a compatible manner with that package
Usage
writeInventory(Inventory, filename = "Inventory.inv", directory = DATA.DIRECTORY)
Arguments
Inventory
A inventory of stations
directory
the default data directory
Details
the function merely reorders the columns so that
id is in the first column followed by latitude, and longitude