| mod_check {PROSPER} | R Documentation |
Checking the main parameters
struc_preparation2
Description
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 |
area |
number of area units. |
duration |
maximum number of simulation loops in the simulation. |
repetitions |
number of repetitions of the simulation. |
crop_list |
crop rotation. |
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.
Examples
mod_check(param.weed=param.GALAP, area=100, duration=2,
repetitions=1, crop_list=c("corn"), max_vec_length=1000000)