haplotypes_to_hashes {malan}R Documentation

Convert haplotypes to hashes (integers)

Description

Individuals with the same haplotype will have the same hash (integer) and individuals with different haplotypes will have different hashes (integers).

Usage

haplotypes_to_hashes(population, pids)

Arguments

population

Population obtained from simulation

pids

Vector of individual pids

Details

This can be useful if for example using haplotypes to define groups and the haplotype itself is not of interest.

Value

Integer vector with haplotype hashes


[Package malan version 1.0.3 Index]