title: How to convert duplicate rows to header columns in R
body: <p>I would like to convert my duplicate rows in header columns following the example bellow:</p>
  <p>File:</p>
  <pre><code> A             B
  Barcode        XYZ
  Instrument     QS
  Date           23/01/2022 
  Barcode        XTRR
  Instrument     QS
  Date           23/01/2022
  Barcode        MKLL
  Instrument     QS
  Date           23/01/2022  
  </code></pre>
  <p>Output:</p>
  <pre><code>Barcode   Instrument   Date
  XYZ        QS          23/01/2022
  XTRR       QS          23/01/2022
  MKLL       QS          23/01/2022
  
  </code></pre>
  <p>Please, Does someone could help me to solve it?</p>