writeMatrix.tableList: Write a list of data.frames (tables) into file with...

View source: R/writeMatrix.tableList.R

writeMatrix.tableListR Documentation

Write a list of data.frames (tables) into file with writeMatrix

Description

Write a list of data.frames (tables) into file with writeMatrix

Usage

writeMatrix.tableList(list, file.names, row.names = TRUE, ...)

Arguments

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 writeMatrix

Value

Side-effects are used

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

See Also

writeMatrix

Examples


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)


ribiosIO documentation built on Feb. 20, 2026, 5:09 p.m.