gen_check {PROSPER} | R Documentation |
Checking the plausibility and conversion of dom and af
link{struc_preparation}
Description
Before calling struc_preparation
it is necessary to bring the genetics into the correct form, which is mainly the correct dimensions.
Usage
gen_check(Rmx, af, dom, epis)
Arguments
Rmx |
maximum resistance value, if all gene loci under consideration are homozygous resistant. |
af |
initial frequency of resistance alleles in the population. |
dom |
dominance of resistance alleles. |
epis |
epistasis value, describing the interaction between resistance alleles. |
Details
If no genetics are required af
has to be set to NA
. The value of dom
is adjusted to the length of af
. If there are mismatches, 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. If no value is given to epis
it is set to 0.