anastomosis: Anastomosis

View source: R/PopSims.R

anastomosisR Documentation

Anastomosis

Description

Combine two gametes into a diploid individual

Usage

anastomosis(hap1, hap2)

Arguments

hap1

A vector encoding the genotype of a haploid individual (0,1).

hap2

A vector encoding the genotype of a haploid individual (0,1).

Value

A vector encoding the genotype of a diploid individual (0,1,2).

Examples

hap1<-rbinom(1000,1,0.5)
hap2<-rbinom(1000,1,0.5)
anastomosis(hap1,hap2,replace=T)

YenWenWang/HapDipKinship documentation built on Jan. 20, 2025, 10:09 a.m.