Learn R Programming

enaR (version 2.9.1)

pack: Compile Network Information into a Network Class

Description

This function provides a flexible framework for importing flow network information into a network class object for analyses.

Usage

pack(flow,input=NA,respiration=NA,export=NA,output=NA,storage=NA,living=NA)

Arguments

flow
The flow matrix.
input
The inputs into the system.
respiration
The quantities respired from the system.
export
The exports from the system.
output
The output (i.e. exports + respiration) from the system.
storage
The quantities stored in compartments within the system.
living
A logical vector indicating whether a node is either 'living' (= TRUE) or 'dead' (=FALSE).

Value

Returns a network object for the supplied model.

See Also

unpack