| pop_step {PROSPER} | R Documentation |
Surviving a non-selective process
Description
pop_step picks the individuals that will pass to the next development stage. This is a random process for every individual, which does not exert any selection pressure.
Usage
pop_step(
start,
start_comb = NA,
result = NA,
stepname = NA,
surv_prob,
max_vec_length = 1e+07
)
Arguments
start |
column names of parental cohorts. |
start_comb |
all named columns in |
result |
name of the results column. |
stepname |
name of the new column of dfgenotype added by this function. |
surv_prob |
probability to survive this step and reach the next growth stage. |
max_vec_length |
used internally, a technical term, defining the maximum length of vectors to be used. |
Details
Individuals that reach the next growth stage are picked by using rbinom. In contrast to sel_herb, pop_step does not exert any evolutionary selection pressure.
When more than one column is selected with start, they are summed and the result is passed to the picking process. By setting start_comb the sum is added as a column to dfgenotype.
Value
A new column is added to dfgenotype containing the surviving individuals of the different genotypes.
See Also
Examples
struc_preparation2(Rmx=10, af=c(0.01,0.8), epis=0, dom=1)
gen_freq(af=c(0.01,0.8), n_seeds=10000)
#How many individuals of each genotype will reach the next growth stage?
pop_step(start="initialSB", stepname="survivingthewinter",
surv_prob=0.4)