Re: [R-sig-Geo] looping over files

2012-03-04 Thread Kanika Jhunjhnuwala
would be appreciated Thanks Kanika From: romu...@gmail.com [mailto:romu...@gmail.com] On Behalf Of Roman Luštrik Sent: Sunday, 4 March 2012 3:10 a.m. To: Kanika Jhunjhnuwala Subject: Re: [R-sig-Geo] looping over files Try this and let me know if it's what you were looking for. knk - c

Re: [R-sig-Geo] looping over files

2012-03-03 Thread Greg Snow
A couple of options: Use the paste or sprintf functions to create your file names vector. This works if you want all combinations, or a very specific set of names. Use list.files to get the list of all the file names in the folder/directory, then use the grep function to extract just the files