title: Assigning a list to cells in data frame (r studio)
body: <p>I have a data frame with two columns and I'm trying to assign list objects row by row to two cells (one in each column):</p>
  
  <pre><code>Type_I_Error&lt;-c()
  Type_II_Error&lt;-c()
  new_frame&lt;-data.frame("Type_I_Error", "Type_II_Error")
  new_frame &lt;- data.frame(Type_I_Error=character(),
               Type_II_Error=character(), 
               stringsAsFactors=FALSE) 
  
  type1errorlist &lt;- list(character(0))
  type1errorlist[[1]][length(type1errorlist[[1]]) + 1] &lt;- "type1errors:"
  type1errorlist[[1]][length(type1errorlist[[1]]) + 1] &lt;- "2002_9"
  
  type2errorlist &lt;- list(character(0))
  type2errorlist[[1]][length(type2errorlist[[1]]) + 1] &lt;- "type2errors:"
  type2errorlist[[1]][length(type2errorlist[[1]]) + 1] &lt;- "2001_9"
  
  a&lt;-as.character(type1errorlist)
  b&lt;-as.character(type2errorlist)
  new_frame &lt;- rbind(new, c(a, b))
  </code></pre>
  
  <p>I get the following error:
  Error in rbind2(..1, r) : 
    cannot coerce type 'closure' to vector of type 'list'</p>
  
  <p>How do I fix this?</p>