writeDatfile | R Documentation |
A wrapper for write.table that has default parameter values for writing tab-separated files as used in packages fitPoly and fitPolyTools
writeDatfile(x, file, quote=FALSE, sep="\t", na="",
row.names=FALSE, col.names=TRUE, logical_01=FALSE, ...)
x |
the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame. |
file |
either a character string naming a file or a connection open for writing. "" indicates output to the console. |
quote |
a logical value (TRUE or FALSE) or a numeric vector. If TRUE, any character or factor columns will be surrounded by double quotes. If a numeric vector, its elements are taken as the indices of columns to quote. In both cases, row and column names are quoted if they are written. If FALSE (default), nothing is quoted. |
sep |
the field separator string. Values within each row of x are separated by this string. |
na |
the string to use for missing values in the data |
row.names |
either a logical value indicating whether the row names of x are to be written along with x, or a character vector of row names to be written. |
col.names |
either a logical value indicating whether the column names of x are to be written along with x, or a character vector of column names to be written. |
logical_01 |
FALSE (default) or TRUE; if TRUE, logical columns of x are converted to 0/1/NA numeric values before writing the file |
... |
Further arguments to be passed to write.table |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.