Description Usage Arguments See Also
Writes a table to a text file using the header from an existing file. This makes it easy to re-write data files into the same format as they were received.
1 2 3 4 5 6 7 8 | writeFileWithHeader(
x,
file,
sHeaderFile,
nRowHeader = 3,
sep = "\t",
verbose = FALSE
)
|
x |
object to be written. Usually a data frame or matrix. |
file |
either a character string naming a file or a connection open for writing. "" indicates output to the console. See write.table. |
sHeaderFile |
string. Filename of a file to copy the header from |
nRowHeader |
integer. Default is 3. Number of rows in the header in the header file. This many rows will be copied from the header file and inserted at the top of the new file. |
sep |
string. Default is "\t" Values on each line of the file are separated by this character. see write.table. |
verbose |
boolean. Default is FALSE. TRUE prints more messages in console. |
write.table read.table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.