Re: [R] merging data list in to single data frame

From: Hadley Wickham <>
Date: Mon, 04 Apr 2011 17:10:44 -0500

> filelist = list.files(pattern = "K*cd.txt") # the file names are K1cd.txt
> K200cd.txt

It's very easy:

names(filelist) <- basename(filelist)
data_list <- ldply(filelist, read.table, header=T, comment=";", fill=T)


Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 04 Apr 2011 - 22:12:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 05 Apr 2011 - 01:30:27 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive