Converts a network object to the extended format of Allesina and Bondavalli (2003). 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.
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