Last data update: 2014.03.03

R: Reads data sheets
readlfdataR Documentation

Reads data sheets

Description

Reads data sheets of different formats directly as lfobjs.

Usage

readlfdata(file, type = c("GRDC", "HZB", "LFU", "TU"), lfobj = TRUE, readmeta = TRUE,...)

Arguments

file

The name of the file which the data are to be read from.

type

The style of the sheet, currently the following formats are accepted: "GRDC", "HZB" (Austria), "LFU" (Germany, Bavaria), "TU" (Technical University Vienna)

lfobj

logical, should a lfobj be created?

readmeta

logical, should metainformation from data sheets be saved?

...

Handed to createlfobj, could be "hyearstart", "baseflow" or "meta", if "readmeta" is FALSE

Value

A lfobj or data.frame depending on "lfobj".

Note

If you like other file formats (national standards) to be includes, send some examples with a remark how NAs are marked to the author

Author(s)

Daniel Koffler and Gregor Laaha

References

Gustard, A. & Demuth, S. (2009) (Eds) Manual on Low-flow Estimation and Prediction. Operational Hydrology Report No. 50, WMO-No. 1029, 136p.

See Also

createlfobj

Examples

#Finding the sample file on your computer
path <- system.file("samplesheets/9104020.day", package = "lfstat")

grdc <- readlfdata(path, type = "GRDC", baseflow = FALSE)
#Some test...
head(grdc)

Results