Function to extract metawebs and local networks from a metanetwork object
extract_networks(metanetwork)
the object whose networks need to be extracted
a list of igraph
objects with attributes computed by metanetwork
Return a list of 'igraph' objects
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"