Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

write.loci

Write Allelic Data Files


Description

This function writes allelic data into a text file.

Usage

write.loci(x, file = "", loci.sep = " ", allele.sep = "/|", ...)

Arguments

x

an object of class "loci".

file

a file name specified by either a variable of mode character, or a quoted string. By default, the data are printed on the console.

loci.sep

the character(s) use to separate the loci (columns) in the file (a space by default).

allele.sep

the character(s) used to separate the alleles for each locus in the file (a slash by default).

...

further arguments passed to write.table.

Value

NULL

Author(s)

Emmanuel Paradis

See Also

read.loci, write.table for all its options

Examples

data(jaguar)
x <- jaguar[1:10, 1:3] # take a small subset
write.loci(x)
## use of '...':
write.loci(x, loci.sep = "\t", quote = FALSE, col.names = FALSE)

pegas

Population and Evolutionary Genetics Analysis System

v1.0
GPL (>= 2)
Authors
Emmanuel Paradis [aut, cre, cph] (<https://orcid.org/0000-0003-3092-2199>), Thibaut Jombart [aut, cph] (<https://orcid.org/0000-0003-2226-8692>), Zhian N. Kamvar [aut, cph] (<https://orcid.org/0000-0003-1458-7108>), Brian Knaus [aut, cph] (<https://orcid.org/0000-0003-1665-4343>), Klaus Schliep [aut, cph] (<https://orcid.org/0000-0003-2941-0161>), Alastair Potts [aut, cph] (<https://orcid.org/0000-0003-0919-7279>), David Winter [aut, cph] (<https://orcid.org/0000-0002-6165-0029>)
Initial release
2021-04-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.