strataSplit: Split Strata

View source: R/strataSplit.R

strataSplitR Documentation

Split Strata

Description

Return a list of gtypes for each stratum.

Usage

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

data(msats.g)

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


EricArcher/strataG documentation built on Feb. 12, 2023, 4:11 a.m.