View source: R/calcExtinctionIndices.r

calc_QSS_extinctions_seq | R Documentation |

This functions calculates the QSS `calc_QSS()`

for a sequence of incremental deletions of species (nodes)
given by the vector `seq`

, it does not produce secundary extinctions

calc_QSS_extinctions_seq(g_del, seq, nsim = 100, ncores = 0, istrength = FALSE)

`g_del` |
igraph object for the deletion sequence |

`seq` |
vector or list with the nodes for the extinction sequence, the extinctions are incremental. |

`nsim` |
number of simulations used in QSS calculation |

`ncores` |
number of cores used to calculate QSS |

`istrength` |
parameter istrength for QSS function |

data frame with the number of remaining nodes, the connectance, the number unconnected of components, the median QSS, and the name of the last deleted node. The first row are the values for the complete network.

## Not run: g <- netData[[1]] # Generate random weights # V(g)$weight <- runif(vcount(g)) # Without interaction strength # calc_QSS_extinctions_seq(g,V(g)$name[1:3],nsim=10,istrength = FALSE) # With interaction strength # calc_QSS_extinctions_seq(g,V(g)$name[1:3],nsim=10,istrength = TRUE) ## End(Not run)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.