[R] Windows list of Folders

From: Erin Hodgess <hodgess_at_gator.uhd.edu>
Date: Sat 30 Apr 2005 - 08:53:43 EST

Hi Kenneth:

I tried:

and that worked just fine.

Hope this helps!
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences University of Houston - Downtown
mailto: hodgess@gator.uhd.edu

 From: khobson@fd9ns01.okladot.state.ok.us  Subject: [R] Windows List of Folders?
 X-BeenThere: r-help@stat.math.ethz.ch

 For windows, how can I list only the folders in some folder?  I was thinking that dir() and file.info() with isdir==TRUE being something  that might work.

 These folders or directories are numerically named with no dot extension  names or other characters. Typically, these are 3132, 3334, ...

 Here is what I tried. The last line is where I need more work.

 setwd (pData)
 x <- dir(pData, all.files=F)
 y <- file.info(x, x$isdir==T)

 TIA  Kenneth Ray Hobson, P.E.
 Oklahoma DOT - QA & IAS Manager
 200 N.E. 21st Street
 Oklahoma City, OK 73105-3204

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Apr 30 08:59:39 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:31 EST