chooseAlleles: Combines two vectors of alleles by randomly selecting one...

Description Usage Arguments Value Examples

View source: R/chooseAlleles.R

Description

Combines two vectors of alleles by randomly selecting one allele or the other at each position.

Usage

1
chooseAlleles(a1, a2)

Arguments

a1

integer vector with first allele for each individual

a2

integer vector with second allele for each individual a1 and a2 are equal length vectors of alleles for one individual

Value

An integer vector with the result of sampling from a1 and a2 according to Mendelian inheritance.

Examples

1
chooseAlleles(0:4, 5:9)

rmsharp/nprcmanager documentation built on April 24, 2021, 3:13 p.m.