mod_check: Checking the main parameters 'struc_preparation2'

Description Usage Arguments Details Examples

View source: R/mod_check.R

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

1
2
3
4
5
6
7
8
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.

Examples

1
2
mod_check(param.weed=param.GALAP, area=100, duration=2,
     repetitions=1, crop_list=c("corn"), max_vec_length=1000000)

PROSPER documentation built on July 2, 2020, 3:25 a.m.

Related to mod_check in PROSPER...