prep.data | R Documentation |
Prepare a P_IZ or T_IZ file to be processed by COSERO. Any missing values can be filled using nalocf
. The output can be divided into hydrological years.
prep.data(x, filename, fill = TRUE, divide = NULL, fmt = "%6.1f", ...)
x |
an xts object, normally created by reading a T_IZ or P_IZ file using |
filename |
character string for the output file(s) |
fill |
logical. Should missing values be filled (see |
divide |
NULL or "years". If "years", x will be divided into hydrological years |
fmt |
character string passed on to |
... |
further arguments passed to |
If the output is divided more than one file is written. The filename then is extended by the hydrological year (e.g. file_2019.txt for the period from 2018-10-01 to 2019-09-30)
an xts object (if divide == NULL) or a list with xts objects
Simon Frey
write.xts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.