Learn R Programming

genepop (version 1.2.2)

Nm_private: Private allele method

Description

Estimation of Nm by private allele method of Slatkin and Barton. See this section of the Genepop executable documentation for more information on the statistical methods.

Usage

Nm_private(
  inputFile,
  outputFile = "",
  dataType = "Diploid",
  verbose = interactive()
)

Value

The path of the output file is returned invisibly.

Arguments

inputFile

The path of the input file, in Genepop format

outputFile

character: The path of the output file

dataType

character: The haploid and diploid data

verbose

logical: whether to print some information

Examples

Run this code
locinfile <- genepopExample('sample.txt')
Nm_private(locinfile,'sample.txt.PRI')
if ( ! interactive()) clean_workdir(otherfiles='sample.txt')

Run the code above in your browser using DataLab