switch_patho_to_aggr.Rd
Finds the level of aggressiveness on different components (targeted by different resistance genes) from the index of a given pathogen genotype
switch_patho_to_aggr(index_patho, Ngenes, Nlevels_aggressiveness)
index of pathogen genotype
number of resistance genes
vector of the number of adaptation levels related to each resistance gene
a vector containing the indices of aggressiveness on the different components targeted by the resistance genes
switch_patho_to_aggr(5, 3, c(2, 2, 3))
#> [1] 0 1 2