bal_loci: Balance per-locus sample size between two populations.

Description Usage Value Examples

View source: R/sample_stats.r

Description

Takes a hierfstat input file and equalizes sample size independently for each locus by randomly removing genotypes from the sample with higher n. Returns the modified hierfstat input file. If more than two population samples are present in the input file, then only the first two listed pop samples are processed.

Usage

1

Value

A modified version of the input dataframe in hierfstat format.

Examples

1
test <- bal_loci(dat.sim)

Daniel-J-Schmidt/genrich documentation built on Aug. 15, 2017, 8:15 p.m.