Learn R Programming

CHCN (version 1.5)

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
filename
A default name
directory
the default data directory

Value

Details

the function merely reorders the columns so that id is in the first column followed by latitude, and longitude