View source: R/write.tableList.R
| write.tableList | R Documentation |
Write a list of data.frames (tables) into files
write.tableList(list, file.names, ...)
list |
A list of data frames |
file.names |
File names. If missing, the names of the list will be used. Must be of the same length as the list |
... |
Other parameters that are passed to |
No return value, called for side effects (writes files).
Jitao David Zhang <jitao_david.zhang@roche.com>
write.table
df1 <- data.frame(name=c("A", "B", "C"), value=1:3)
df2 <- data.frame(name=c("C", "D", "E"), value=seq(9,3,-3))
dflist <- list(file1=df1, file2=df2)
tmpdir <- tempdir()
write.tableList(dflist,
file.names=file.path(tmpdir, c("file1.txt", "file2.txt")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.