switch_patho_to_aggr: Switch from index of genotype to indices of agressiveness on...

View source: R/output.R

switch_patho_to_aggrR Documentation

Switch from index of genotype to indices of agressiveness on different components

Description

Finds the level of aggressiveness on different components (targeted by different resistance genes) from the index of a given pathogen genotype

Usage

switch_patho_to_aggr(index_patho, Ngenes, Nlevels_aggressiveness)

Arguments

index_patho

index of pathogen genotype

Ngenes

number of resistance genes

Nlevels_aggressiveness

vector of the number of adaptation levels related to each resistance gene

Value

a vector containing the indices of aggressiveness on the different components targeted by the resistance genes

Examples

switch_patho_to_aggr(5, 3, c(2, 2, 3))

landsepi documentation built on July 26, 2023, 5:36 p.m.