Learn R Programming

strataG (version 2.0.2)

numMissing: Number Missing Data

Description

Calculate the number of individuals with missing data by locus.

Usage

numMissing(g, prop = FALSE)

Arguments

g

a '>gtypes object.

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