This function returns an interaction network using the model proposed by Williams & Martinez (2000), the sign of coefficients can be modified to simulate different kind of network.

nicheModel(nbsp, connec, mode)

Arguments

nbsp

an integer, the number of species.

connec

a real number giving the connectance of the network to be generated (between 0 and .5).

mode

an integer used to select the sign used in the network (1- for predation; 2-competition; 3-nutualism) a real number giving the optimum value, i.e the abiotic values at which the colonisation rate is maximal.

Value

Returns a numeric matrix describing the interaction network.

References

Williams, R. J. & Martinez, N. D. Simple rules yield complex food webs. Nature 404, 180-183 (2000).