| write.loci {pegas} | R Documentation |
This function writes allelic data into a text file.
write.loci(x, file = "", loci.sep = " ", allele.sep = "/", ...)
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. |
NULL
Emmanuel Paradis
require(adegenet) data(nancycats) x <- as.loci(nancycats) ## print a small subset of the data: write.loci(x[1:10, 1:3]) ## use of '...': write.loci(x[1:10, 1:3], quote = FALSE, col.names = FALSE)