chkdata {Rhh}R Documentation

Check Genotype Data

Description

Check genotype data for problems.

Usage

chkdata(genotypes)

Arguments

genotypes An array with each row representing an individual and every two columns representing genotype data for two alleles in a loci.

Details

This function checks that 1) there is even number of columns, i.e. two alleles per individual for each locus, in the genotype data; 2) each loci is polymorphic, i.e. has more than one allele in the data; and 3) that each individual has either two null alleles or two non-null alleles in a given locus.

Error occurs if the first two checks fail. If the last check fails, there will be a warning.

Value

None

Note

This function is meant to be run with genotype data before using functions hl, ir, sh and hh. It is called automatically by functions mlh and h_cor.

See Also

hl, ir, sh, hh, mlh and h_cor


[Package Rhh version 1.0 Index]