[R] read.table but more tables at once

2009-10-28 Thread Sybille Wendel
Dear all, I have a lot of data files (.txt) that I want to read in all at once, if possible. the files have names in time system. for example: RA940101, RA940102, RA940103, RA940104 an so on. (meaning: RA, year:91, month: here january, day of the month.) I tried something like vektor -

Re: [R] read.table but more tables at once

2009-10-28 Thread baptiste auguie
Hi, Try this, files - paste(RA94010,1:3,sep=) # or files - list.files(pattern = RA94010) list.of.data - lapply(files, read.table, header=F) # if required, collapse into a single data.frame do.call(rbind, list.of.data) HTH, baptiste 2009/10/28 Sybille Wendel wendel.sybi...@googlemail.com:

Re: [R] read.table but more tables at once

2009-10-28 Thread Barry Rowlingson
On Wed, Oct 28, 2009 at 9:38 AM, Sybille Wendel wendel.sybi...@googlemail.com wrote: Dear all, I have a lot of data files (.txt) that I want to read in all at once, if possible. the files have names in time system. for example: RA940101, RA940102, RA940103, RA940104 an so on. (meaning: RA,