write.list {marray} | R Documentation |
Writes information from a list into a text file.
write.list(x, filename = "data", append = FALSE, closefile = TRUE, outfile)
x |
the list object to be written. |
filename |
a character string representing the file name. |
append |
logical; if true, the data x is appended to file
filename . |
closefile |
logical indicating if the file connection should be closed. |
outfile |
file name or connections. |
This function may be called recursively if there exists list structure within a list.
Jean Yee Hwa Yang
data(swirl) test <- list(A = 1:10, B= maM(swirl)[1:10,], C=list(x=1:10, y=1:4), D = summary(maA(swirl[,1]))) write.list(test, filename="test.txt")