[R] applying rbind to list elements

Hendrik Fuß fuss-h at ulster.ac.uk
Wed Apr 25 22:25:55 CEST 2007


I knew there would be a simple solution.

thanks everybody.

On 25/04/07, Duncan Murdoch <murdoch at stats.uwo.ca> wrote:
> On 4/25/2007 4:09 PM, Hendrik Fuß wrote:
> > Hi,
> >
> > I have a list of n data.frames (or matrices) which I would like to
> > convert to a single data.frame using rbind:
> >
> >    x <- rbind( l[[1]], l[[2]], l[[3]], l[[4]], ..., l[[n]] )
> >
> > Is there a simple way to do this?
>
> do.call(rbind, l).
>
> Duncan Murdoch
>
>


-- 
Hendrik Fuß
PhD student
Systems Biology Research Group

University of Ulster, School of Biomedical Sciences
Cromore Road, Coleraine, BT52 1SA, Northern Ireland



More information about the R-help mailing list