title: How to duplicate column rows and fill an added column with one item in list
body: <p>I have a dataframe with the following columns:</p>
  <pre class="lang-r prettyprint-override"><code>tester &lt;- data.frame(id = c(123456789, 987654321))
  tester$furniture &lt;- list(c(&quot;chair&quot;), c(&quot;bed&quot;, &quot;bench&quot;, &quot;barstool&quot;))
  tester$count &lt;- c(1,3)
  </code></pre>
  <p>Based on the value in the count column, each row is repeated [count] number of times:</p>
  <pre class="lang-r prettyprint-override"><code>tester[rep(seq_len(dim(tester_2)[1]), tester$count), ]
  </code></pre>
  <p>The number of items in the furniture list will always be equal to the count value</p>
  <p>I want to create a new column that contains one item from the list, in order from the first through the last list item. I would manually input what  I want in this new column as:</p>
  <pre class="lang-r prettyprint-override"><code>tester$new &lt;- c(&quot;chair&quot;, &quot;bench&quot;, &quot;bed&quot;, &quot;barstool&quot;)
  </code></pre>
  <p>but this doesn't work now because the dataframe resulting from the above code only technically has two rows.</p>
  <p>Any advice would be greatly appreciated!</p>