therMizerParams | R Documentation |
therMizerParams
classConstructor method for the therMizerParams class. Provides the
simplest way of making a therMizerParams
object to be used in a
simulation.
Only really used to make therMizerParams of the right size and shouldn't be used by user
Constructor that takes the species_params data.frame and the interaction matrix
Constructor based on the species_params data.frame only with no interaction
therMizerParams(object, interaction, ...)
## S4 method for signature 'numeric,missing'
therMizerParams(object, min_w = 0.001,
max_w = max(object$w_inf) * 1.1, no_w = 100, min_w_pp = 1e-14,
no_w_pp = round(no_w) * 0.3, species_names = 1:object,
gear_names = species_names, realm_names = species_names)
## S4 method for signature 'data.frame,matrix'
therMizerParams(object, interaction, n = 2/3,
p = 0.7, q = 0.8, r_pp = 10, kappa = 1e+11, lambda = (2 + q - n),
w_pp_cutoff = max(object$w_inf) * 1.1, max_w = max(object$w_inf) * 1.1,
f0 = 0.6, z0pre = 0.6, z0exp = n - 1, ...)
## S4 method for signature 'data.frame,missing'
therMizerParams(object, interaction, ...)
object |
A data frame of species specific parameter values (see notes below). |
interaction |
Optional argument to specify the interaction matrix of the
species (predator by prey). If missing a default interaction is used where
all interactions between species are set to 1. Note that any dimnames of
the interaction matrix argument are ignored by the constructor. The
dimnames of the interaction matrix in the returned |
... |
Additional arguments. |
min_w |
The smallest size of the community spectrum. |
max_w |
The largest size of the community spectrum. Default value is the largest w_inf in the community x 1.1. |
no_w |
The number of size bins in the community spectrum. |
min_w_pp |
The smallest size of the background spectrum. |
no_w_pp |
The number of the extra size bins in the background spectrum (i.e. the difference between the number of sizes bins in the community spectrum and the full spectrum). |
species_names |
Names of the species. Generally not needed as normally
taken from the |
gear_names |
Names of the gears that catch each species. Generally not
needed as normally taken from the |
realm_names |
Names of the realms that each species inhabits.
Generally not needed as normally taken from the |
n |
Scaling of the intake. Default value is 2/3. |
p |
Scaling of the standard metabolism. Default value is 0.7. |
q |
Exponent of the search volume. Default value is 0.8. |
r_pp |
Growth rate of the primary productivity. Default value is 10. |
kappa |
Carrying capacity of the resource spectrum. Default value is 1e11. |
lambda |
Exponent of the resource spectrum. Default value is (2+q-n). |
w_pp_cutoff |
The cut off size of the background spectrum. Default value is 10. |
f0 |
Average feeding level. Used to calculated |
z0pre |
If |
z0exp |
If |
An object of type therMizerParams
The only essential argument to the therMizerParams
constructor is a
data frame which contains the species data. The data frame is arranged
species by parameter, so each column of the parameter data frame is a
parameter and each row has the parameters for one of the species in the
model.
There are some essential columns that must be included in the parameter
data.frame and that do not have default values. Other columns do have
default values, so that if they are not included in the species parameter
data frame, they will be automatically added when the therMizerParams
object is created. See the accompanying vignette for details of these
columns.
An additional constructor method which takes an integer of the number of
species in the model. This is only used in internally to set up a
therMizerParams
object with the correct dimensions. It is not recommended
that this method is used by users.
project_therMizer
therMizerSim
data(NS_species_params_gears)
data(inter)
params <- MizerParams_therMizer(NS_species_params_gears, inter)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.