View source: R/resource_filtering.R
resource_filtering | R Documentation |
Resource filtering assembly
resource_filtering(sp.names, metaweb, keep.n.basal = FALSE)
sp.names |
vector, names of the species in the meta-community. |
metaweb |
adjacency matrix of the meta food web (metaweb). |
keep.n.basal |
TRUE/FALSE, if to keep the number of basal species as originally passed in sp.names. |
A vector with the species names.
set.seed(1234) data(adirondack) patch <- draw_random_species(50, colnames(adirondack)) show_fw(patch, adirondack) patch_filtered <- resource_filtering(patch, adirondack, keep.n.basal = TRUE) show_fw(patch_filtered, adirondack) setdiff(patch, patch_filtered)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.