| sidfex.fcst.search.addTableItem | R Documentation |
DEPRECATED (included in sidfex.fcst.search.createIndex) - Read one or SIDFEx forecast and add some key quantities and information to the (previously existing or not) index file "indexTable.rda". If the specified index file does not exist, a now one is created. The data will be stored in .rda-format.
sidfex.fcst.search.addTableItem (filename, data.path=NULL, indexTable.path=NULL, is.open.rTab=FALSE, rTab.in=NULL, checkfileformat=TRUE, do.print.less=TRUE)
filename |
a character specifying the file to read. If the filename is provided with a leading filepath, set |
data.path |
|
indexTable.path |
|
is.open.rTab |
a boolen value, default |
rTab.in |
a data frame which will be returned with one row appended if |
checkfileformat |
a logical value specifying whether or not to check if the file format complies with the SIDFEx conventions, using |
do.print.less |
a logical value specifying whether or not to print a statement for every dataset while adding it to the index file (to keep console output down). |
If is.open.rTab = FALSE, this function returns 0 (old C++ habit of author and sometimes useful). If is.open.rTab = TRUE and (thus) rTab.in given, the function returns a copy of the input data frame with one appended row (if the row did not exist before).
The above-mentioned columns of the data frame should be (exactly) this vector:
indexNames = c("File", "GroupID", "MethodID", "TargetID", "InitYear", "InitDayOfYear", "EnsMemNum", "SubmitYear", "SubmitDayOfYear",
"ProcessedYear", "ProcessedDayOfYear", "Delay", "nTimeSteps", "FirstTimeStepYear", "FirstTimeStepDayOfYear", "LastTimeStepYear",
"LastTimeStepDayOfYear", "FcstTime")
It is strongly suggested not to create the index file by hand, use the given functions instead to avoid problems or inconsistencies.
Simon Reifenberg
sidfex.fcst.search.createIndexTable, sidfex.fcst.search.extractFromTable, sidfex.fcst.search.rda2csv
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.