sel_herb: Surviving the herbicide

Description Usage Arguments Details See Also Examples

View source: R/sel_herb.R

Description

sel_herb calculates the surviving number of each genotype. sel_herb selects for resistant individuals.

Usage

1
sel_herb(start, result, thresh, sdrate, rate, put, max_vec_length = 1e+07)

Arguments

start

column names of parental cohorts. character vector.

result

name of the results column. character.

thresh

threshold herbicide rate to kill weeds without resistance. numeric, 0 ≤ \code{thresh} ≤ 1.

sdrate

variance of the herbicide rate reaching the weed. positive numeric, 1 = 1 unit standard deviation.

rate

percentage (%) of the registered herbicide dose. positive numeric, can exceed 100 %.

put

probability of a weed to be untouched by the herbicide. numeric, 0 ≤ \code{put} ≤ 1.

max_vec_length

used internally, a technical term, defining the maximum length of vectors to be used.

Details

For every genotype intern_herbicide is called. If no genetics are included, the value from start is returned in result.

See Also

sel_resist

Examples

1
2
3
4
struc_preparation2(Rmx=10, af=c(0.02,0.01), epis=0, dom=1)
gen_freq( af=c(0.01,0.8), n_seeds=10000)
sel_herb(start="initialSB", result="winter", 
                       thresh=20, sdrate=0.4, rate=100, put=0.04)

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

Related to sel_herb in PROSPER...