?list.files
?file.info
?setwd

You can get a list of all the files in a directory (list.files) and then do
a file.info to determine which ones are the directories you want to search.
A list.files on that directory will give you the list of file names that you
can then process.




On Fri, Jan 8, 2010 at 12:41 PM, anupam sinha <anupam.contact@gmail.com>wrote:

> Dear all,
>              I have this directory structure :
>
> Dir1       Dir2       Dir3      Dir4  .........................
> A.xml     D.xml    G.xml
> B.xml     E.xml     H.xml
> C.xml     F.xml     I.xml
>
> Within each of these directories (Dir1, Dir2 etc) there are a num of xml
> files (A.xml, B.xml etc).
>
> What I want to do is to enter into the first directory read all the xml
> files do certain operations come out  of the directory and do the same
> thing
> for another directory. Can anyone help me out ? Thanks in advance for any
> suggestions.
>
> Regards,
>
> Anupam Sinha
>
>        [[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]]

