Learn R Programming

FlowCAr (version 1.1.1)

PackNet: Packing possible LIM networks into a list.

Description

Through the use of certain functions in this package, a list of enaR network objects are created. The output created is a list of network objects ready to be used in enaR. In order to 'pack' an enaR network object, you require a flow matrix of type 'matrix'. You will require input,respiration,export, and output vectors of type 'vector' Storage consists of the 'components' value from the LIM file called using "'limfile'$Components" where limfile is the name of the lim file read in. Living requires a vector consisting of true and false values to indicate whether the corresponding node is alive or dead. The LIMtoENA functions provide this requirements.

Usage

PackNet(internalflows, importsvec, respvec, exportsvec, outputsvec, biomassC, livingvec)

Arguments

internalflows

A list containing matrices of the internal flows of a network.

importsvec

A list containing vectors of import values for a network.

respvec

A list containing vectors of respiration values for a network.

exportsvec

A list containing vectors of export values for a network.

outputsvec

A list containing vectors of output values for a network.

biomassC

A vector of biomass values for a network.

livingvec

A vector of true and false values for living and non-living nodes in a network.

Examples

Run this code
# NOT RUN {
PackedNetworkObjectList <- PackNet(internalflows, 
importsvec, respvec, exportsvec, outputsvec, biomassC, livingvec)
# }

Run the code above in your browser using DataLab