title: Using R to list all files with a specified extension
body: <p>I'm very new to R and am working on updating an R script to iterate through a series of .dbf tables created using ArcGIS and produce a series of graphs.</p>
  
  <p>I have a directory, C:\Scratch, that will contain all of my .dbf files. However, when ArcGIS creates these tables, it also includes a .dbf.xml file. I want to remove these .dbf.xml files from my file list and thus my iteration. I've tried searching and experimenting with regular expressions to no avail. This is the basic expression I'm using (Excluding all of the various experimentation):</p>
  
  <pre><code>files &lt;- list.files(pattern = "dbf")
  </code></pre>
  
  <p>Can anyone give me some direction?</p>