robustness: Conducts species-removal robustness assessments on food webs

View source: R/robustness.R

robustnessR Documentation

Conducts species-removal robustness assessments on food webs

Description

Conducts species-removal robustness assessments on food webs

Usage

robustness(fw_to_attack, probs_of_fw, alpha1)

Arguments

fw_to_attack

Food web matrix to be attacked, a data frame.

probs_of_fw

Vector with the probability of attack to each node.

alpha1

Percentage of secondary extinctions after a primary extinction.

Examples

data(mg1)
graph_list1 <- convert.to.graph.list(mg1)
#Create a vector with the values for the Intentionality Index (I)
i_index <- seq(from = 0, to = 1, by =0.01)
i_index <- head(i_index,-1)
fw1 <- graph_list1[[1]]
prob_exp <- exponent.removal(fw1, i_index)
r1 <- robustness(fw1, prob_exp, alpha1=50)

FMestre1/fw_package documentation built on March 24, 2022, 1:27 a.m.