Description Usage Arguments Details Examples
Several presets are provided for creating text data files. Functions are based on write.table, with some predefined extras to save time when writing data sets to clear text files
1 |
data |
name of object to be saved |
filename |
File name |
sep |
Column separator, see details |
quote |
Should text data be quoted? Default FALSE |
row.names |
Whether rownames whould be included in output, default=FALSE |
... |
Further arguments passed on to write.table() |
Both of the named functions just use the filename as 2nd positional argument and call write.table(). Difference between both is that write.tab has predefined the column separator as "\t", while write.space uses the write.table default " ".
1 2 3 4 5 | ## Not run:
write.tab(iris,"~/iris_tab.txt")
write.space(iris,"~/iris_space.txt")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.