R function to read in a matrix formatted as Mdloti (Ursula Sharler)
Source:R/read.enam.R
read.enam.Rd
This function reads network data from an excel file commonly used by Ursula Sharler. The file has three header lines (name/source, number of compartments, number of living nodes) and then a n+2 x n+2 matrix of flows. This is the flow matrix with an additional row for imports and biomass each and additional columns for exports and respirations.
Arguments
- file
The name and path for the data file. This function assumes the data are stored on the first sheet of an Microsoft Excel formatted. NOTE: this function depends on the read_xls function from the readxl package, which requires that the entire path be specified from the root directory (i.e. the absolute path).
References
Fath, B. D., Borrett, S. R. 2006. A Matlab function for Network Environ Analysis. Environ. Model. Softw. 21, 375-405.