Learn R Programming

strataG (version 2.0.2)

summarizeSamples: Sample Summaries

Description

Compile standard by-sample summaries.

Usage

summarizeSamples(g, sort.by.strata = FALSE)

Arguments

g

a '>gtypes object.

sort.by.strata

logical. Sort data.frame by strata?

Value

A data.frame with rows for each sample and columns containing:

id

The sample id

strata

The stratum of the sample

num.loci.missing.genotypes

The number of genotypes missing

pct.loci.missing.genotypes

The proportion of genotypes missing

pct.loci.homozygous

The proportion of loci homozygous

Examples

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

summarizeSamples(msats.g)

# }

Run the code above in your browser using DataLab