Learn R Programming

enaR (version 2.9.1)

as.extended: Create an Extended Format Matrix

Description

Converts a network object to the extended format of Allesina and Bondavalli (2003).

Usage

as.extended(x, zero.na = TRUE)

Arguments

x
A network object.
zero.na
Logical: should NA's be replaced with zeros?

Value

Returns an extended format matrix.

Details

Used in the balance function.

References

Allesina, S., Bondavalli, C., 2003. Steady state of ecosystem flow networks: a comparison between balancing procedures.Ecological Modelling 165(2-3):231-239.

See Also

balance

Examples

Run this code
data(troModels)
as.extended(troModels[[6]])

Run the code above in your browser using DataLab