Hi I have a list with several data.frames, all with the same number of colunms but different number of rows, and I'd like to transform this list into a single dataframe. I need to mimic an rbind of all dataframes ... Transform doesn't seem to work :-( Thanks EJ -- Ernesto Jardim <ernesto at ipimar.pt> Bi?logo Marinho/Marine Biologist IPIMAR - Instituto Nacional de Investiga??o Agr?ria e das Pescas IPIMAR - National Research Institute for Agriculture and Fisheries Av. Brasilia, 1400-006 Lisboa, Portugal Tel: +351 213 027 000 Fax: +351 213 015 948 http://ernesto.freezope.org
Ernesto Jardim <ernesto at ipimar.pt> writes:> Hi > > I have a list with several data.frames, all with the same number of > colunms but different number of rows, and I'd like to transform this > list into a single dataframe. I need to mimic an rbind of all dataframes > ... > > Transform doesn't seem to work :-(No, why should it? It's designed to add transformed variables to a single dataframe. I think what you're looking for is simply do.call("rbind",list.of.frames) -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
On 3 Jul 2003, Ernesto Jardim wrote:> I have a list with several data.frames, all with the same number of > colunms but different number of rows, and I'd like to transform this > list into a single dataframe. I need to mimic an rbind of all dataframesAs in do.call("rbind", list.of.data.frames)?> Transform doesn't seem to work :-(for this job? or in general? -- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595