myWriteLines | R Documentation |
Write a list of vectors to an output file. Each line is one element of list.
myWriteLines(file_v, data_lsv, sep_v = " ")
file_v |
path to file |
data_lsv |
list of vectors |
sep_v |
Character vector used to separate elements of a vector. If NULL, each element of each vector will have its own line |
no output to stdout, just writes to file.
testOut_lsv <- list(rep(0, 5), LETTERS[1:10], "This is a test")
myWriteLines("~/Desktop/multiLineTest.txt", testOut_lsv, sep = NULL)
myWriteLines("~/Desktop/singleLineTest.txt", testOut_lsv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.