Learn R Programming

HWxtest (version 1.0.5)

genepop.to.genind: Imports a .txt file in GenePop format into an object of type genind

Description

The main work is done by the function adegenet::import2genind. However, that function requires text files with an extension of .gen, whereas such files usually have extension .txt. The sole purpose of this function is to work around the .gen requirement.

Usage

genepop.to.genind(name, quiet = TRUE)

Arguments

name
the name of a file in GenePop format
quiet
whether a conversion message should be printed

Value

  • an object of class genind