Imports a FSTAT data file into R.
The data frame created is made of nl+1 columns, nl being the number of loci.
The first column corresponds to the Population identifier,
the following columns contains the genotypes of the individuals.
a file in the FSTAT format (http://www.unil.ch/popgen/softwares/fstat.htm):
The file must have the following format:
The first line contains 4 numbers: the number of samples, np , the number of loci, nl,
the highest n
na.s
The strings that correspond to the missing value.
You should note have to change this
Value
a data frame containing the desired data, in a format adequate to pass to varcomp
References
Goudet J. (1995). FSTAT (Version 1.2): A computer program to calculate F- statistics. Journal of Heredity 86:485-486
Goudet J. (2005). Hierfstat, a package for R to compute and test variance components and F-statistics. Molecular Ecology Notes. 5:184-186