Skip to content
Prev 221168 / 398500 Next

reading in all files of a certain type

Thanks again - and one follow-up question.
When I do do.call(rbind, lapply(dir(patt = "\\.csv$"), read.csv))
What is the right way to speicify (probably under "patt") that I only
need to grab those .csv files that contain a certain string, e.g.,
"result"?
I tried a couple of things, like patt= "\\.csv$" & pat = "result" -
but it does not seem to work
Thanks a lot!
Dimitri



On Wed, May 12, 2010 at 6:16 PM, Dimitri Liakhovitski
<dimitri.liakhovitski at gmail.com> wrote: