I've got a data frame which I've split by a factor, creating a list of dataframes which I have then done various operations on individually. I next want to recombine the resulting dataframes (still held in a list, still with the same number of columns with the same names) and there does not appear to be a `good' way to do this - at the moment, I'm using a for-loop with the rbind command, but this is terribly slow ... Anyone know a better way to do it? Thanks Chris Rogers ----------------------------------------------------------------------- L C G Rogers, Professor of Probability tel:+44 1225 826224 Department of Mathematical Sciences fax:+44 1225 826492 University of Bath, Bath BA2 7AY, GB Email: L.C.G.Rogers at bath.ac.uk web: www.bath.ac.uk/~maslcgr/home.html ----------------------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 25 Sep 2001, L C G Rogers wrote:> > I've got a data frame which I've split by a factor, > creating a list of dataframes which I have then done > various operations on individually. I next want to > recombine the resulting dataframes (still held in a list, > still with the same number of columns with the same names) > and there does not appear to be a `good' way to do this - > at the moment, I'm using a for-loop with the rbind > command, but this is terribly slow ... Anyone know a > better way to do it?do.call("rbind", list.of.data.frames) -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._