fstat {adegenet} | R Documentation |
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.
fstat(x, pop=NULL, fstonly=FALSE)
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). |
A matrix of F statistics.
Thibaut Jombart jombart@biomserv.univ-lyon1.fr
if(require(hierfstat)){ data(nancycats) fstat(nancycats) }