make_params: Create params object.

View source: R/Parameter_functions.R

make_paramsR Documentation

Create params object.

Description

Initializes an object of class params.

Usage

make_params(n.spec, n.site)

Arguments

n.spec

Numeric, the number of species in the metacommunity.

n.site

Numeric, the number of communities in the metacommunity.

Details

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.

Value

Returns an empty object of S3 class params.

Examples

make_params(5,5)


trevorjwilli/CommSimABCR documentation built on Feb. 4, 2025, 1:22 a.m.