subsample_loci: Generate subset of data with random sample of loci.

Description Usage Arguments Value Author(s) Examples

View source: R/subsample_loci.R

Description

This function is to assist in estimating statistical strength of your inferences by subsampling the loci you have.

Usage

1
subsample_loci(x, numLoci)

Arguments

x

A data.frame that has Locus objects in it.

numLoci

The number of loci you wnat to sample (must be length(column_class("locus")))

Value

A new data.frame with a subset of loci.

Author(s)

Rodney J. Dyer rjdyer@vcu.edu

Examples

1
2
3
data(arapat)
sub <- subsample_loci( arapat, numLoci = 4 )
summary( sub )

MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.