write.delim | R Documentation |
prints its required argument x (after converting it to a data frame if it is not one nor a matrix) to a file with tab delimiter without quotes and row names
write.delim(x, file = "", ...)
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 |
a character string naming a file |
... |
other arguments passed to write.table |
The function is equivalent to
write.table(x = x, file = file, quote = F, sep = "\t", row.names = F, ...)
write.table
### create and write data.frame df<-data.frame(number=1:5, words=c("one", "two", "three", "four", "five")) write.delim(df, "df.txt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.