Before the preparation (struc_preparation2) it is necessary to check, whether the necessary information is provided to principally conduct a simulation run. Furthermore the crop.list is brought to the correct form.
Usage
mod_check(
param.weed = NA,
area = NA,
duration = NA,
repetitions = NA,
crop_list = NA,
max_vec_length = NA
)
Arguments
param.weed
A data.frame with population dynamic parameters with or without stochasticity. The structure of param.weed is essential (see details). The easiest way to create the data.frame is to adopt an example (param.ECHCG).
area
number of area units. positive numeric.
duration
maximum number of simulation loops in the simulation. positive integer.
repetitions
number of repetitions of the simulation. positive integer
crop_list
crop rotation. character vector, elements must fit to the names in the data.frame weed.
max_vec_length
used internally, a technical term, defining the maximum length of vectors to be used.
Details
If no genetics are required af has to be set to NA. The value of dom is adjusted to the length of af. The dom is cut or the first given value is repeated to fit the number of given alleles in af. The variables af and dom are corrected and n_loci is created, which is 0 when no genetics is included.