You can use 'list.files(..., recursive=TRUE)' to get a list of the file
names and then process sequentially.  It all depends on the type of
processing that you want to do.  You can also write a recursive function to
do the same thing.  Only take a couple of lines of code.

On Mon, Apr 19, 2010 at 5:25 AM, Albert-Jan Roskam <fomcl@yahoo.com> wrote:

> Hi,
>
> I would like to recursively loop through al subfolders of a directory and
> do stuff with certain file types in those dirs. Is there a package/function
> that could do this? So it's more than Sys.glob. I'm looking for equivalent
> of Python's os.walk *) and I don't want to reinvent the wheel.
>
> Thank you.
>
> Cheers!!
> Albert-Jan
>
> *) http://www.saltycrane.com/blog/2007/03/python-oswalk-example/
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> All right, but apart from the sanitation, the medicine, education, wine,
> public order, irrigation, roads, a fresh water system, and public health,
> what have the Romans ever done for us?
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>
>


-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?

	[[alternative HTML version deleted]]

