The side effect of na.omit
is to drop the rows (individuals)
with unclearly identified genotypes, i.e., with at least one allele
among na.alleles
.
Other variables in the data table are eventually checked and levels
with no observation (e.g., population) are dropped.
nullAlleles2NA
does not remove any observation but changes
these genotypes into NA
.