generate.pop {simer}R Documentation

Population generator

Description

Generate population according to the number of individuals.

Usage

generate.pop(pop.ind = 100, from = 1, ratio = 0.5, gen = 1)

Arguments

pop.ind

the number of the individuals in a population.

from

initial index of the population.

ratio

sex ratio of males in a population.

gen

generation ID of the population.

Details

Build date: Nov 14, 2018 Last update: Apr 28, 2022

Value

a data frame of population information.

Author(s)

Dong Yin

Examples

pop <- generate.pop(pop.ind = 100)
head(pop)

[Package simer version 0.9.0.4 Index]