[R] Windows list of Folders
hodgess at gator.uhd.edu
Sat Apr 30 00:53:43 CEST 2005
and that worked just fine.
Hope this helps!
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: hodgess at gator.uhd.edu
From: khobson at fd9ns01.okladot.state.ok.us
Subject: [R] Windows List of Folders?
X-BeenThere: r-help at 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.
x <- dir(pData, all.files=F)
y <- file.info(x, x$isdir==T)
Kenneth Ray Hobson, P.E.
Oklahoma DOT - QA & IAS Manager
200 N.E. 21st Street
Oklahoma City, OK 73105-3204
More information about the R-help