Description Usage Arguments Value
View source: R/GenerateSignMatrix.R
Generate sign matrix
1 2 | GenerateSignMatrix(tl.results, connectance = NULL, interaction.probs = NULL,
within.type.prob, verbose = F)
|
tl.results |
community dataframe from |
connectance |
C = L/Sp, where Sp is the potential connectance considering the assumptions. it also accepts a vector of specific connectances, in which case no interaction probabilities are used |
interaction.probs |
dataframe with 5 rows: competition, amensalism, antagonism, mutualism, commensalism and a column "prob" with the percentage for each interaction |
within.type.prob |
data frame with columns 'interaction type', 'tl.category' and 'prob' where interaction type is 'amensalism','antagonism', 'commensalism, 'competition' or 'mutualism'; tl.category is 'same', 'adjacent', or 'other'. An example is included in the package. and prob is the probability of occurrence of each combination of interaction and trophic levels of the species involved. |
verbose |
detailed output |
Integer matrix of size NxN
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.