title: R merge pdf into one pdf
body: <p>I have a folder which contains around 400 .pdf files, each .pdf file is 2 pages total.</p>
  
  <p>All .pdf file names are under the following format: </p>
  
  <pre><code>148-c16631-27-02-2018.pdf
  </code></pre>
  
  <p>What I would like is to merge under one pdf file, the pdf files that have a certain code in the file name in <code>R</code>. For instance:</p>
  
  <pre><code>148-c16631-27-02-2018.pdf
  148-c14369-27-02-2018.pdf
  148-c101593-27-02-2018.pdf
  </code></pre>
  
  <p>These have the code 148 which is unique, to be merged into 1 pdf file with 8 pages.</p>
  
  <p>Thank you in advance for any input.</p>