View source: R/Parameter_functions.R
make_params | R Documentation |
Initializes an object of class params.
make_params(n.spec, n.site)
n.spec |
Numeric, the number of species in the metacommunity. |
n.site |
Numeric, the number of communities in the metacommunity. |
This function is used to initialize a params object. A params object is a list with 3 named elements: s, fd, and mig. s is a matrix of selection coefficients where columns correspond to species and rows correspond to sites (or communities). fd is a vector containing the frequency dependence parameters for each species. mig is a list of migration matrices, where cell ij is the probability for each species to migrate from site j to site i.
Returns an empty object of S3 class params.
make_params(5,5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.