chkdata {Rhh} | R Documentation |
Check genotype data for problems.
chkdata(genotypes)
genotypes |
An array with each row representing an individual and every two columns representing genotype data for two alleles in a loci. |
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.
None
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
.