GenerateSignMatrix: Generate sign matrix

Description Usage Arguments Value

View source: R/GenerateSignMatrix.R

Description

Generate sign matrix

Usage

1
2
GenerateSignMatrix(tl.results, connectance = NULL, interaction.probs = NULL,
  within.type.prob, verbose = F)

Arguments

tl.results

community dataframe from AssignTrophicLevel

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

Value

Integer matrix of size NxN


DavidGarciaCallejas/DGC documentation built on May 6, 2019, 1:54 p.m.