Convert text lines to status matrix, as e.g. required by
kwb.rsproto::configure
Arguments
- textlines
vector of character linees as they appear in the GompitZ input file header (only the lines defining the status matrix)
- sep
column separator. Default: ";"
- order_rows
if
TRUE
(default) the rows are ordered by their name
Examples
if (FALSE) {
file <- kwbGompitz::exampleFile("obs.txt")
kwbGompitz:::toStatusMatrix(textlines = readLines(file, 8)[-(1:2)])
}