Re: [R] Extracting from zip, removing certain file extensions

2011-11-29 Thread Mathew Brown
Great, many thanks. On 11/29/2011 3:09 PM, Duncan Murdoch wrote: On 29/11/2011 8:36 AM, Mathew Brown wrote: Hi there, I'm running R on windows 7 with Rstudio. Everyday I receive a zip file where a bunch of half-hourly files are zipped together. I then use xx=unzip(ind) to get xx, which consi

Re: [R] Extracting from zip, removing certain file extensions

2011-11-29 Thread Duncan Murdoch
On 29/11/2011 8:36 AM, Mathew Brown wrote: Hi there, I'm running R on windows 7 with Rstudio. Everyday I receive a zip file where a bunch of half-hourly files are zipped together. I then use xx=unzip(ind) to get xx, which consists of : [1] "./2011/A20112961503.flx" "./2011/A20112961503.log" ".

Re: [R] Extracting from zip, removing certain file extensions

2011-11-29 Thread jim holtman
use pattern matching (regular expressions): e.g., myFileNames[grepl("slt$", myFileNames)] On Tue, Nov 29, 2011 at 8:36 AM, Mathew Brown wrote: > > > Hi there, > I'm running R on windows 7 with Rstudio. Everyday I receive a zip file > where  a bunch of half-hourly files are zipped together. > I

[R] Extracting from zip, removing certain file extensions

2011-11-29 Thread Mathew Brown
Hi there, I'm running R on windows 7 with Rstudio. Everyday I receive a zip file where a bunch of half-hourly files are zipped together. I then use xx=unzip(ind) to get xx, which consists of : [1] "./2011/A20112961503.flx" "./2011/A20112961503.log" "./2011/A20113211730.slt" "./2011/A201132118