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

From: Taka Matzmoto <sell_mirage_ne_at_hotmail.com>
Date: Thu, 31 May 2007 21:18:35 -0500

Dear R-users,

I am looking for a way to scan a directory and then make a string vector consisting of the file names in the directory.

For example, under c:\temp\
there are 4 files
a.txt, b.txt, c.txt, and d.txt

I would like to have a string vector

How do I do that?



Make every IM count. Download Messenger and join the iím Initiative now. Itís free. http://im.live.com/messenger/im/home/?source=TAGHM_June07

R-help_at_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 and provide commented, minimal, self-contained, reproducible code. Received on Fri 01 Jun 2007 - 02:37:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 01 Jun 2007 - 06:31:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.