naomitab handles missing values (NA) in a data frame: it returns a list of the columns where NAs have
been removed.
Usage
naomitab(tab)
Arguments
tab
a data frame
Value
Returns a list of length the number of columns in tab
where each component is a column of tab, and the values are the corresponding rows where NAs have
been removed.
Note
This function was designed to handle missing values in data frames in the format of the Journal of Forensic
Sciences for population genetic data: allele names are given in the first column, and frequencies for a
given allele are read in rows for different loci.
When a given allele is not observed, the value is coded NA (originally coded "-" in the journal).