[R] unlist

Ernesto Jardim ernesto at ipimar.pt
Thu Jul 3 19:03:25 CEST 2003


On Thu, 2003-07-03 at 17:57, Peter Dalgaard BSA wrote:
> 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)

Hi

It worked, thanks for your help.

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




More information about the R-help mailing list