ts_write_csv.Rd
The initial columns in the csv file are as follows
The year of the value.
The month of the value.
The day of the value.
The hour of the value.
The station
The csv file should also include the following columns
The value as provided by the station maintainer.
The corrected value (see below).
The reliability of the corrected value (see below).
The parameter type, ie, Discharge, Elevation, Water Temperature etc.
The units of the value.
The name of the station.
Comments on the value.
ts_write_csv(data, file = "tsdbr.csv")
The data frame with a minimum of columns Station and DateTime
either a character string naming a file or a connection
open for writing. ""
indicates output to the console.
An invisible copy of saved data.
There are three possible status values
There is nothing obviously wrong with the value.
The value may be wrong.
The value is definitely wrong.
In general questionable values are those which are in the range of possible values but are inconsistent with spatial or temporal neighbours while erroneous value are those which are outside the range of possible values, ie negative discharge.
If a value is erroneous, questionable or missing (indicated by NA) then we will (time permitting) provide a corrected value based on neighbouring values. Otherwise the corrected value is simply the recorded value. The status column refers to the corrected value and corrected values which differ from the recorded value are coded as Questionable.
If data gaps are not important it is recommended that you only include Reasonable values. Otherwise it is recommended that you only include Questionable values that you consider to be reliable based on plotting and analysis.