.move | R Documentation |
One move of the limiting similarity algorithm
.move( sp.names, metaweb, t = 0, method = "jaccard", stat = "mean", mode = "all", return.similarity = FALSE )
sp.names |
vector, names of the species in the meta-community. |
metaweb |
adjacency matrix of the meta food web (metaweb). |
t |
is the 'temperature' of the system. |
method |
character, same as in similarity (igraph). Options are 'jaccard', 'dice', and 'invlogweighted'. |
stat |
character, statistic used to summarize similarity. Currently available are c("mean", "sum", "max"). |
mode |
character, which edges are used to compute similarity. Currently available are c("all", "in", "out"). |
return.similarity |
logical, if to return the difference in similarity score. |
Similarities are calculated using igraph as matrices. To summarize these into species-level metrics, the argument "stat" is needed. When stat = "mean", probability of removal of species is proportional to the average of their similarities, etc. Global similarities, i.e. of the whole food web, are also summarized depending on the "stat" argument in a similar way.
When mode = 'in', similarity is computed using only 'in' links, i.e. species are considered similar if they share similar resources, but not necessarily have similar consumers. The opposite is treu when mode = 'out'. When mode = 'all' (default) all edges are considered.
A vector with the species names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.