Handling of missing values in a data frame

Description

naomitab handles missing values (NA) in a data frame: it returns a list of the columns where NAs have been removed.

Usage

1
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).

Author(s)

Hinda Haned <contact@hindahaned.info>

See Also

tabfreq

Examples

1
2

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.