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 Input/Output documentation for R. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity.
pannigh <pann...@gwdg.de> 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 something and want to add it to the list like: >list1[[4]] <- list(c(4,4,4), "This is it") ># Now I want to transfer the list to e.g. a text document: >lapply(L1, write, "test.txt", append=TRUE, ncolumns=100) > >However, this does not work and I don't know why. Also I would be >interested >in better options to get lists out of R (with tables I never had any >problems). > >Thank you for your help and ideas! > >-- >View this message in context: >http://r.789695.n4.nabble.com/Transfering-data-from-R-list-to-other-document-format-tp4630057.html >Sent from the R help mailing list archive at Nabble.com. > >______________________________________________ >R-help@r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.