second.extinct(web, participant = "higher", method = "abun", nrep = 10,
details = FALSE, ext.row=NULL, ext.col=NULL)
high
(default) or low
or both
, depending if you want to exterminate higher trophic level species, lower trophic level species, or randomly choose species of both levels.FALSE
(default), replicated runs will be averaged. Using anything but FALSE
will not yield the correct object for further analysiplot.bipartite
.If , the returned object contains a matrix with columns representing the number of species going extinct from one step to the next, averaged across all runs.
If , the returned object will be a list of matrices containing the number of species going extinct at each step.
The objects attribute
Internally, each extermination is achieved by a call to extinction
, followed by a call to empty
, which counts the number of all-zero columns and rows.
Although written for pollination webs (hence the nomenclature of pollinator and plant), it can be similarly applied to other types of bipartite networks. It is called by networklevel
.
networklevel
calls second.extinct
; extinction
and empty
are internal helper functions, and slope.bipartite
calculates extinction slopes from the output of second.extinct
.data(Safariland)
(ex <- second.extinct(Safariland, participant="lower", method="random", nrep=50,
details=TRUE))
(ex <- second.extinct(Safariland, participant="lower", method="random", nrep=50,
details=FALSE))
Run the code above in your browser using DataLab