Skip to content
Prev 116968 / 398500 Next

scan a directory and then make a string vector consisting of file names

On Thu, 2007-05-31 at 21:18 -0500, Taka Matzmoto wrote:
See ?list.files

For example:

  list.files("c:/temp", pattern = "\\.txt")

Note the use of the forward slash in the 'path' argument. See R Windows
FAQ:

http://cran.r-project.org/bin/windows/base/rw-FAQ.html#R-can_0027t-find-my-file

HTH,

Marc Schwartz