resource_filtering: Resource filtering assembly

View source: R/resource_filtering.R

resource_filteringR Documentation

Resource filtering assembly

Description

Resource filtering assembly

Usage

resource_filtering(sp.names, metaweb, keep.n.basal = FALSE)

Arguments

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.

Value

A vector with the species names.

Examples

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)

emilio-berti/assembly documentation built on Aug. 16, 2022, 9:50 p.m.