Reads a HISEA-formatted baseline (standard) data file. The file is expected to
contain data for multiple stocks/populations, with data for each stock
separated by a delimiter string (e.g., "NEXT STOCK").
Blank lines and lines starting with '#' (comments) are ignored.
Usage
read_baseline(filepath, nv)
Arguments
- filepath
Character string, the path to the baseline .std
file.
- nv
Integer, the number of variables (columns) expected for each observation
in the baseline data.
Value
A list of numeric matrices. Each matrix in the list corresponds to a
stock/population, with rows being observations and columns being variables.
Returns an empty list if no valid data is found or errors occur during parsing.