[R] Scan a folder for a given type of files

2008-12-08 Thread pomchip
Dear R-users, I have found on the list several posts addressing the issue of getting data for a list of defined files. However, I found nothing about scanning a given folder and retrieving the list of, let's say, .txt files (I probably used the wrong keywords). Could someone tell me which posts

Re: [R] Scan a folder for a given type of files

2008-12-08 Thread Gábor Csárdi
Sebastien, see ?list.files, especially the 'pattern' argument. For your particular case it is list.files(pattern=\\.txt$) You might want to use the 'ignore.case' argument as well. Gabor On Mon, Dec 8, 2008 at 10:53 PM, [EMAIL PROTECTED] wrote: Dear R-users, I have found on the list

Re: [R] Scan a folder for a given type of files

2008-12-08 Thread Bert Gunter
?files and the links therein. Seems like a most obvious keyword to me for asking about files ... Cheers, Bert Gunter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 08, 2008 1:54 PM To: r-help@r-project.org

Re: [R] Scan a folder for a given type of files

2008-12-08 Thread Sébastien
Thanks Gabor Gábor Csárdi a écrit : Sebastien, see ?list.files, especially the 'pattern' argument. For your particular case it is list.files(pattern=\\.txt$) You might want to use the 'ignore.case' argument as well. Gabor On Mon, Dec 8, 2008 at 10:53 PM, [EMAIL PROTECTED] wrote: