get.snpR.stats: Pull calculated statistics from snpRdata objects.

Description Usage Arguments Details Author(s) Examples

View source: R/utility_functions.R

Description

A convenience function that pulls statistics of any specified type at particular facets from a snpRdata object.

Usage

1
get.snpR.stats(x, facets = NULL, type = "single")

Arguments

x

snpRdata object.

facets

character or NULL, default NULL. Facets for which to fetch data.

type

character, default "single". Type of statistics to pull, see description.

Details

Facets are specified as described in Facets_in_snpR. If facets = "all", data for all facets, including the base facet, will be returned. By default, the base facet alone will be returned.

Different types of statistics are retrieved via the following options under the "type" argument:

Author(s)

William Hemstrom

Examples

1
2
3
4
5
6
# generate some statistics
dat <- calc_pi(stickSNPs, "group.pop")
dat <- calc_pairwise_fst(stickSNPs, "group.pop")

# fetch pi get.snpR.stats(stickSNPs, "group.pop") # fetch fst
get.snpR.stats(stickSNPs, "group.pop", "pairwise")

hemstrow/snpR documentation built on July 11, 2019, 8:44 p.m.