Function to extract metawebs and local networks from a metanetwork object

extract_networks(metanetwork)

Arguments

metanetwork

the object whose networks need to be extracted

Value

a list of igraph objects with attributes computed by metanetwork

Details

Return a list of 'igraph' objects

Examples

library(metanetwork)
data("meta_angola")
nets = extract_networks(meta_angola)  
sapply(nets,class)
#>        metaweb          X1986          X2003 metaweb_Phylum   X1986_Phylum 
#>       "igraph"       "igraph"       "igraph"       "igraph"       "igraph" 
#>   X2003_Phylum 
#>       "igraph"