Learn R Programming

adegenet (version 1.2-3)

fstat: F statistics for genind objects

Description

This function is a wrapper of varcomp.glob for genind objects. It computes F statistics (Fst, Fis, Fit) given a set of genotypes and a grouping factor.

Usage

fstat(x, pop=NULL, fstonly=FALSE)

Arguments

x
an object of class genind.
pop
a factor giving the 'population' of each individual. If NULL, pop is seeked from x@pop. Note that the term population refers in fact to any grouping of individuals'.
fstonly
a logical stating whether only the Fst value should be returned (TRUE) instead of all F statistics (FALSE, default).

Value

  • A matrix of F statistics.

encoding

UTF-8

See Also

varcomp.glob, gstat.randtest

Examples

Run this code
if(require(hierfstat)){
data(nancycats)
fstat(nancycats)
}

Run the code above in your browser using DataLab