Description Usage Arguments Value Author(s) See Also
This function is closely modelled on write.table
. It writes an
object of class SnpMatrix
as a text file with one line for
each row of the matrix. Genotpyes are written in numerical form,
i.e. as 0, 1 or 2 (where 1 denotes heterozygous) or,
optionally, as a pair of alleles (each coded 1 or 2).
1 |
x |
The object to be written |
file |
The name of the output file |
as.alleles |
If |
append |
If |
quote |
If |
sep |
The string separating entries within a line |
eol |
The string terminating each line |
na |
The string written for missing genotypes |
row.names |
If |
col.names |
If |
A numeric vector giving the dimensions of the matrix written
David Clayton dc208@cam.ac.uk
write.table
, SnpMatrix-class
,
XSnpMatrix-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.