Re: [R] Transfering data from R list to other document format

2012-05-15 Thread pannigh
Yup, “rapply“ does the magic. Thank you very much, this command is new to me! My “glaringly obvious error” is indeed very obvious and was a result of constructing an example here and copying my “lapply” command into the text. So don't worry, when the question arose both names were identical Once

Re: [R] Transfering data from R list to other document format

2012-05-15 Thread pannigh
Thanx for your effort answering by phone! dput (list, "list.txt") does write something to a text doc but in a confusing manner. All previous commands that created the list seem to appear. However, I will check out the pack you mentioned. Guess my aim would be to read the list into a simple .txt f

Re: [R] Transfering data from R list to other document format

2012-05-15 Thread David Winsemius
On May 15, 2012, at 6:56 AM, pannigh wrote: Dear users, I want to transfer a list of results from R to some practical format, from where I can continue manipulating, copying,... the values, e.g. : list1 <- list("My first list", matrix(1:6, ncol=3), c(1,2,3,4,5,6) ) # Imagining I forgot some

Re: [R] Transfering data from R list to other document format

2012-05-15 Thread Jeff Newmiller
Well, dput() can do this, but if your goal is exchange with other analysis packages then you need to decide whether transforming to XML or to a tabular form meets your needs better. For the latter, you might consider the ldply function from the plyr package. You may benefit from reading the Data

[R] Transfering data from R list to other document format

2012-05-15 Thread pannigh
Dear users, I want to transfer a list of results from R to some practical format, from where I can continue manipulating, copying,... the values, e.g. : list1 <- list("My first list", matrix(1:6, ncol=3), c(1,2,3,4,5,6) ) # Imagining I forgot something and want to add it to the list like: list1[[4