conversion {genepop}R Documentation

File conversions

Description

Converts input files from genepop format to some other formats (some maybe only of historical interest): Fstat, two Biosys formats. and linkdos. See this section of the Genepop executable documentation for more information on the statistical methods.

Usage

conversion(inputFile, format, outputFile = "", verbose = interactive())

Arguments

inputFile

The path of the input file, in Genepop format

format

Character string: must be one of 'Fstat', 'BiosysL', 'BiosysN', or 'Linkdos'

outputFile

character: The path of the output file

verbose

logical: whether to print some information

Value

The path of the output file is returned invisibly.

Examples

locinfile <- genepopExample('sample.txt')
conversion(locinfile, format='Fstat', 'sample.txt.DAT')
if ( ! interactive()) clean_workdir(otherfiles='sample.txt')

[Package genepop version 1.2.2 Index]