title: Change list items to name R
body: <p>I have a lot of lists that look like this</p>
  
  <pre><code>:List of 73
  ..$ :List of 2
  .. ..$: chr "aaaa"
  .. ..$: num 2
  ..$ :List of 2
  .. ..$: chr "cccc"
  .. ..$: num 7
  ..$ :List of 2
  .. ..$: chr "dddd"
  .. ..$: num 5
  ..$ :List of 2
  .. ..$: chr "bbbb"
  .. ..$: num 6
  </code></pre>
  
  <p>et cetera for 73 times</p>
  
  <p>So there are 73 lists within the list. And each part of those lists contain of two items. But in fact it is one item and the second itemis the value. How can I change the list in an automated way so that it looks something like this:</p>
  
  <pre><code>:List of 73
  $ aaaa: num 2
  $ cccc: num 7
  $ dddd: num 5
  $ bbbb: num 6
  </code></pre>
  
  <p>et cetera for 73 times</p>
  
  <p>I have a lot of lists looking like this, but each time the "aaaa" is on a different place, so changing manually is very time consuming. </p>