View source: R/subset_network.R
subset_network | R Documentation |
Extracting a network according to the edge intersection of networks.
subset_network(network_list, venn = NULL, name = NULL)
network_list |
a list with multiple networks; all the networks should be |
venn |
default NULL; a |
name |
default NULL; integer or character; must be a number or one of colnames of the |
trans_network
object, with only the extracted edges in the network
data(soil_amp_network)
# first obtain edge distribution
tmp <- edge_comp(soil_amp_network)
# obtain edge intersection using trans_venn class
tmp1 <- microeco::trans_venn$new(tmp)
# convert intersection result to microtable object
tmp2 <- tmp1$trans_comm()
# extract the intersection of all the three networks ("IW", "TW" and "CW")
test <- subset_network(soil_amp_network, venn = tmp2, name = "IW&TW&CW")
# test is a trans_network object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.