title: Match partial file name to full file name
body: <p>I have file list named in the following way</p>
  
  <pre><code>csv_files&lt;-list.files(path, pattern =‘.csv’)
  </code></pre>
  
  <p>1001_2017_01_02#19_30_24.csv
  1002_2018_03_01#20_30_54.csv...</p>
  
  <p>Format is essentially: id _year_month_day#hour_min_sec.csv.</p>
  
  <p>I have striped the ID and date from the file name in order to sort using the neardate function. 
  Eventually I have a data frame containing the prefix 1001_2017_01_02 and not the full file name.
  Essentially I want to match the partial file name from the final data frame to the full file name then copy the matching files to a new path.</p>
  
  <p>Any comments would be helpful thanks.</p>