na.omit.loci: Missing Allelic Data

Description Usage Arguments Details Value Author(s) Examples

View source: R/conversion.R

Description

This is a method of the generic function na.omit.

Usage

1
2
## S3 method for class 'loci'
na.omit(object, na.alleles = c("0", "."), ...)

Arguments

object

an object of class "loci".

na.alleles

a vector of charater strings giving the alleles to be treated as missing data.

...

(unused)

Details

The side effect of this function 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.

Value

an object of class "loci".

Author(s)

Emmanuel Paradis

Examples

1
2
3


pegas documentation built on May 19, 2017, 4:25 p.m.
Search within the pegas 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.