title: Get element in list with numeric name
body: <p>That's probably a duplicate, but I couldn't find the answer anywhere...</p>
  
  <p>Anyways, here's my simple problem. I am loading a yaml file in R with users metadata. After parsing the yaml with <code>yaml::yaml.load_file</code>, the list looks like this:</p>
  
  <pre><code>$users
  $users$`1`
  $users$`1`$user
  [1] "Alice"
  
  
  $users$`2`
  $users$`2`$user
  [1] "Bob"
  </code></pre>
  
  <p>I can get the user with id = 1 by:</p>
  
  <pre><code>user_list$users$`1`$user
  </code></pre>
  
  <p>That returns:</p>
  
  <pre><code>[1] "Alice"
  </code></pre>
  
  <p>My question is: how can I transform a numeric 1 into this "quoted" version, so I can pass the id as a function argument that retrieves the user I want?</p>