Learn R Programming

enaR (version 2.9.1)

read.enam: Read ENA Model from an Mdloti Formatted Excel File

Description

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.

Usage

read.enam(file='file path and name')

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.xlsx function from the xlsx package, which requires that the entire path be specified from the root directory (i.e. the absolute path).

Value

Returns the network object.

References

Fath, B. D., Borrett, S. R. 2006. A Matlab function for Network Environ Analysis. Environ. Model. Softw. 21, 375-405.

See Also

read.scor