read.fstat: Reading data from Fstat

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/import.R

Description

The function read.fstat reads Fstat data files (.dat) and convert them into a genind object.

Usage

1
read.fstat(file, quiet = FALSE)

Arguments

file

a character string giving the path to the file to convert, with the appropriate extension.

quiet

logical stating whether a conversion message must be printed (TRUE,default) or not (FALSE).

Details

Note: read.fstat is meant for DIPLOID DATA ONLY. Haploid data with the Hierfstat format can be read into R using read.table or read.csv after removing headers and 'POP' lines, and then converted using df2genind.

Value

an object of the class genind

Author(s)

Thibaut Jombart t.jombart@imperial.ac.uk

References

Fstat (version 2.9.3). Software by Jerome Goudet. http://www2.unil.ch/popgen/softwares/fstat.htm

See Also

import2genind, df2genind, read.genetix, read.structure, read.genepop

Examples

1
2
obj <- read.fstat(system.file("files/nancycats.dat",package="adegenet"))
obj

adegenet documentation built on July 18, 2021, 1:06 a.m.