writeStrList: Write a list of strings in a tab-delimited file

View source: R/writeStrList.R

writeStrListR Documentation

Write a list of strings in a tab-delimited file

Description

Write a list of strings in a tab-delimited file

Usage

writeStrList(
  list,
  file,
  names = NULL,
  type = c("column", "row"),
  index = FALSE
)

Arguments

list

A list of character strings

file

A filename

names

Names of the list; by default the names of the list

type

Should list items written in columns or rows?

index

Logical, should integer index be printed along the elements?

Value

No return value, called for side effects (writes to file).

Examples

myList <- list("A"=LETTERS[3:5], "B"=LETTERS[4])
writeStrList(myList, file=stdout())
writeStrList(myList, file=stdout(), names=c("ListA", "ListB"))
writeStrList(myList, file=stdout(), names=c("ListA", "ListB"), type="row")
writeStrList(myList, file=stdout(), names=c("ListA", "ListB"), type="row", index=TRUE)
writeStrList(myList, file=stdout(), names=c("ListA", "ListB"), type="column", index=TRUE)

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