[R] how to input multiple .txt files

hadley wickham h.wickham at gmail.com
Mon Mar 30 18:56:52 CEST 2009

On Mon, Mar 30, 2009 at 10:33 AM, Mike Lawrence <Mike.Lawrence at dal.ca> wrote:
> To repent for my sins, I'll also suggest that Hadley Wickham's "plyr"
> package (http://had.co.nz/plyr/) is also useful/parsimonious in this
> context:
> a <- ldply(cust1_files,read.table)

You might also want to do

names(cust1_files) <- basename(cust1_files)

so that you can easily see where each part of the data came from
(although I think this will only work in the next version of plyr)



More information about the R-help mailing list