writefstat: Write an Fstat data file

write.fstatR Documentation

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

Author(s)

Jerome Goudet

References

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

Examples

## Not run: data(gtrunchier)
write.fstat(gtrunchier[,-1],"galba.dat")

## End(Not run)

hierfstat documentation built on May 6, 2022, 1:05 a.m.