Generate interactions according to five types of interactions and their weights
Source:R/utils.R
dot-getInteractions.Rd
Generate interactions according to five types of interactions and their weights
Arguments
- n_species
Integer: defining the dimension of matrix of interaction
- weights
Numeric: defining the weights of mutualism, commensalism, parasitism, amensalism, and competition in all interspecies interactions.
- connectance
Numeric: defining the density of the interaction network. Ranging from 0 to 1