naomitab: Handling of missing values in a data frame

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/AuxFunc.R

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

forensim documentation built on May 2, 2019, 6:09 p.m.

Related to naomitab in forensim...