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

Description Usage Value Examples

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 May 6, 2019, 10:52 p.m.