Skip to content

Extracting from zip, removing certain file extensions

4 messages · Mathew Brown, jim holtman, Duncan Murdoch

#
use pattern matching (regular expressions): e.g.,

myFileNames[grepl("slt$", myFileNames)]


On Tue, Nov 29, 2011 at 8:36 AM, Mathew Brown
<mathew.brown at forst.uni-goettingen.de> wrote:

  
    
#
On 29/11/2011 8:36 AM, Mathew Brown wrote:
Use a regular expression:

xx <- grep("slt$", xx, value=TRUE)

If you want to do more complicated matching, read ?glob2rx or ?regexp.

Duncan Murdoch
#
Great, many thanks.
On 11/29/2011 3:09 PM, Duncan Murdoch wrote: