Learn R Programming

hierfstat (version 0.5-11)

write.fstat: Write an Fstat data file

Description

Write a data frame to a text file in the fstat data format, see read.fstat

Usage

write.fstat(dat,fname="genotypes.dat")

Arguments

dat

A data frame with first column containing the population identifier and remaining columns containing genotypes

fname

The name of teh text file to which the data frame should be written

Value

None

References

Goudet J. (1995). FSTAT (Version 1.2): A computer program to calculate F- statistics. Journal of Heredity 86:485-486

Examples

Run this code
# NOT RUN {
data(gtrunchier)
write.fstat(gtrunchier[,-1],"galba.dat")
# }

Run the code above in your browser using DataLab