Learn R Programming

strataG (version 2.4.905)

numMissing: Number Missing Data

Description

Calculate the number of individuals with missing data by locus.

Usage

numMissing(g, by.strata = FALSE, prop = FALSE)

Arguments

g

a '>gtypes object.

by.strata

logical - return results grouped by strata?

prop

logical determining whether to return proportion missing.

Value

a vector of loci with number (or, if prop = TRUE, the proportion) of individuals missing data for at least one allele.

Examples

Run this code
# NOT RUN {
data(msats.g)

numMissing(msats.g)
numMissing(msats.g, prop = TRUE)

# }

Run the code above in your browser using DataLab