is_haploid: Haploid genotype data

View source: R/haploid_functions.R

is_haploidR Documentation

Haploid genotype data

Description

Haploid genotype data

Usage

is_haploid(geno)

haploid_to_geno(geno)

Arguments

geno

Population genotype data.

Details

Haploid genotype data is stored as an array of dimensions 2 x n.loci x n.ind, the elements of which must be z 0, 1.

Haploids can be checked by using the is_haploid function, and can be converted to a standard genotype matrix by using the haploid_to_geno function.


neyhartj/pbsim documentation built on Nov. 11, 2023, 4:07 p.m.