Try this:

do.call(rbind, lapply(dir(patt = "\\.csv$"), read.csv))

On Wed, May 12, 2010 at 4:32 PM, Dimitri Liakhovitski <
dimitri.liakhovitski@gmail.com> wrote:

> Hello,
>
> I am wondering if it's possible to read in all files of a certain type
> - without specifying their names.
> For example, I have 10 .csv files in my working directory.
> I would like to read them in and bind them all together. I was
> thinking of writing a loop, read in all files, and then bind them.
> Is it possible?
>
> Thanks a lot!
>
> --
> Dimitri Liakhovitski
> Ninah Consulting
> www.ninah.com
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

