powered by
Calculate the individual number per generation.
IndPerGen( pop, pop.gen = 2, ps = c(0.8, 0.8), reprod.way = "randmate", sex.rate = 0.5, prog = 2 )
the vector containing the individual number per generation.
the population information containing environmental factors and other effects.
the generations of simulated population.
if ps <= 1, fraction selected in selection of males and females; if ps > 1, ps is number of selected males and females.
reproduction method, it consists of 'clone', 'dh', 'selfpol', 'randmate', 'randexself', 'assort', 'disassort', '2waycro', '3waycro', '4waycro', 'backcro', and 'userped'.
the sex ratio of simulated population.
the progeny number of an individual.
Dong Yin
Build date: Apr 12, 2022 Last update: Apr 30, 2022
pop <- generate.pop(pop.ind = 100) count.ind <- IndPerGen(pop)
Run the code above in your browser using DataLab