Learn R Programming

malan (version 1.0.3)

split_by_haplotypes: Split pids by haplotype

Description

Individuals with the same haplotype will be in the same group and individuals with different haplotypes will be in different groups.

Usage

split_by_haplotypes(population, pids)

Value

List of integer vector, element i is an IntegerVector with all pids from pids with the same haplotype

Arguments

population

Population obtained from simulation

pids

Vector of individual pids