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 21, 2017, 3:39 a.m.

Search within the forensim package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.