Skip to contents

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

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.

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

Author

Matthew K. Lau Stuart R. Borrett

Examples




data(troModels)
as.extended(troModels[[6]])
#>                  PLANTS BACTERIA DETRITUS FEEDERS CARNIVORES DETRITUS export
#> PLANTS                0        0                0          0     8881    300
#> BACTERIA              0        0               75          0     1600    255
#> DETRITUS FEEDERS      0        0                0        370      200      0
#> CARNIVORES            0        0                0          0      167      0
#> DETRITUS              0     5205             2309          0        0    860
#>                       0        0                0          0        0      0
#>                       0        0                0          0        0      0
#> import            11184        0                0          0      635      0
#>                  respiration  
#> PLANTS                  2003 0
#> BACTERIA                3275 0
#> DETRITUS FEEDERS        1814 0
#> CARNIVORES               203 0
#> DETRITUS                3109 0
#>                            0 0
#>                            0 0
#> import                     0 0