Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

subsampind

Subsample a FSTAT data frame


Description

Subsample a given number of individuals from a FSTAT data frame

Usage

subsampind(dat,sampsize = 10)

Arguments

dat

A data frame with population of origin as first column, and genotypes in following columns.

sampsize

the number of individuals to sample in each population.

Value

A data frame with population of origin as first column, and genotypes in following columns. Each population is made of at most sampsize individuals

Author(s)

Jerome Goudet jerome.goudet@unil.ch

Examples

data(gtrunchier)
subsampind(gtrunchier[,-1],6)  # check the warning

hierfstat

Estimation and Tests of Hierarchical F-Statistics

v0.5-10
GPL (>= 2)
Authors
Jerome Goudet [aut, cre], Thibaut Jombart [aut], Zhian N. Kamvar [ctb], Eric Archer [ctb], Olivier Hardy [ctb]
Initial release
2021-11-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.