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

genind2hierfstat

Converts genind objects from adegenet into a hierfstat data frame


Description

Converts genind objects from adegenet into a hierfstat data frame

Usage

genind2hierfstat(dat,pop=NULL)

Arguments

dat

a genind object

pop

a vector containing the population to which each individual belongs. If pop=NULL, pop taken from slot pop of the genind object

Value

a data frame with nloci+1 columns and ninds rows. The first column contains the population identifier, the following the genotypes at each locus

Examples

## Not run: 
library(adegenet)
data(nancycats)
genind2hierfstat(nancycats)
basic.stats(nancycats)
genet.dist(nancycats)
data(H3N2)
basic.stats(genind2hierfstat(H3N2,pop=rep(1,dim(H3N2@tab)[1])),diploid=FALSE)

## End(Not run)

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.