heterozygous_individuals: Heterozygosity

Description Usage Arguments Value Examples

View source: R/main.R

Description

Creates an array, which contains a 1 for every heterozygous and a 0 for every homozygous individual. The array has a similar structure like that after the simulation, but the first dimension is only the number of individuals.

Usage

1

Arguments

pop

The array containing the simulation from simulation()

Value

An array that indicates whether an individual is heterozygous

Examples

1
2
p <- simulation()
h <- heterozygous_individuals(pop = p)

johschnee/WrightFisherSimulation documentation built on Dec. 21, 2021, 2:15 a.m.