genedivFis {genepop} | R Documentation |
Gene diversities and Fis (or rho_IS)
Description
Evaluates Fis and gene diversities, or related measures based on allele sizes. See this section of the Genepop executable documentation for more information on the identity-based statistical methods, and this one for allele-size based ones.
Usage
genedivFis(
inputFile,
sizes = FALSE,
outputFile = "",
dataType = "Diploid",
verbose = interactive()
)
Arguments
inputFile |
The path of the input file, in Genepop format |
sizes |
logical: whether to compute statistics based on allele size, or not. |
outputFile |
character: The path of the output file |
dataType |
character: The haploid and diploid data |
verbose |
logical: whether to print some information |
Value
The path of the output file is returned invisibly.
Examples
locinfile <- genepopExample('sample.txt')
genedivFis(locinfile,outputFile = 'sample.txt.DIV')
if ( ! interactive()) clean_workdir(otherfiles='sample.txt')
[Package genepop version 1.2.2 Index]