write.genepop: Export to GenePop/LinkDos format

Description Usage Arguments Details Examples

Description

Export to GenePop/LinkDos format

Usage

1
2
write.genepop(x, file = "", digits = 2L,
  description = "DNAprofiles export")

Arguments

x

profiles object

file

(optional) filename

digits

number of digits used to encode alleles (2 or 3)

description

first line of GenePop file

Details

Exports a profiles object as a text file in the GenePop/LinkDos format. See http://genepop.curtin.edu.au/help_input.html for more information.

Examples

1
2
3
4
5
6
7
8
data(freqsNLsgmplus)

set.seed(123)

# sample a small reference db
x <- sample.profiles(N = 1e3,freqs=freqsNLsgmplus)

write.genepop(x)

DNAprofiles documentation built on Jan. 15, 2017, 9:27 p.m.