| writeStrList | R Documentation |
Write a list of strings in a tab-delimited file
writeStrList(
list,
file,
names = NULL,
type = c("column", "row"),
index = FALSE
)
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? |
No return value, called for side effects (writes to file).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.