View source: R/Parameter_functions.R
set_fd | R Documentation |
Function to create random vector of frequency dependence parameters.
set_fd(paramfile, input1, input2)
paramfile |
params object initialized using |
input1 , input2 |
Numeric, parameters for uniform distribution. |
This function randomly generates frequency dependence parameters by sampling from a random uniform distribution where input1 is the minimum and input2 is the maximum.
Returns a numeric matrix of selection coefficients where cell ij is the selection coefficient for species j in community i.
paramfile <- make_params(5,5)
paramfile$fd <- set_fd(paramfile, -1, 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.