View source: R/writeMatrix.tableList.R
| writeMatrix.tableList | R Documentation |
Write a list of data.frames (tables) into file with writeMatrix
writeMatrix.tableList(list, file.names, row.names = TRUE, ...)
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 |
row.names |
Logical, whether row.names should be in the first, unnamed column of the output files |
... |
Other parameters that are passed to |
Side-effects are used
Jitao David Zhang <jitao_david.zhang@roche.com>
writeMatrix
td <- tempdir()
cwd <- getwd()
setwd(td)
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)
writeMatrix.tableList(dflist) ## two files, file1 and file2, are written
dir()
writeMatrix.tableList(dflist, file.names=c("file1.txt", "file2.txt"))
dir()
setwd(cwd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.