powered by
Write a data frame to a text file in the fstat data format, see read.fstat
read.fstat
write.fstat(dat,fname="genotypes.dat")
A data frame with first column containing the population identifier and remaining columns containing genotypes
The name of teh text file to which the data frame should be written
None
Goudet J. (1995). FSTAT (Version 1.2): A computer program to calculate F- statistics. Journal of Heredity 86:485-486
# NOT RUN { data(gtrunchier) write.fstat(gtrunchier[,-1],"galba.dat") # }
Run the code above in your browser using DataLab