strataSplit: Split Strata

Description Usage Arguments Value Author(s) Examples

View source: R/strataSplit.R

Description

Return a list of gtypes for each stratum.

Usage

1
strataSplit(g, strata = NULL, remove.sequences = FALSE)

Arguments

g

a gtypes object.

strata

a character vector giving a subset of strata to select. If NULL then a list with all strata is created.

remove.sequences

logical. If TRUE any sequences not referenced in selected samples will not be in the returned object.

Value

A named list where each element is a gtypes object for a single stratum in g.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

1
2
3
4
5
data(msats.g)

# Proportion of unique alleles in each stratum
msats.list <- strataSplit(msats.g)
lapply(msats.list, propUniqueAlleles)

strataG documentation built on Feb. 28, 2020, 9:07 a.m.