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

View source: R/subsample_loci.R

subsample_lociR Documentation

Generate subset of data with random sample of loci.

Description

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

Usage

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

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

dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.