title: R turning list to data frame
body: <p>I have three list  from a web scraping fishing some data around.</p>
  
  <p>This is the code I have used (credit to David Jankoski for the idea of it):</p>
  
  <pre><code>&gt; `x %&gt;%
     html_nodes(".survey-row") %&gt;%
     html_attr("data-url")
     list1 &lt;- x
         [1] "http://catalog.ihsn.org/index.php/catalog/7118"
         [2] ...`   
  </code></pre>
  
  <p>This element has got </p>
  
  <pre><code> `class "c('xml_document', 'xml_node')"`
  </code></pre>
  
  <p>I would like to turn this list (and the other two - very similar to this) into a data frame.
  Yet, I have tried the </p>
  
  <p>1.
       <code>list1.a &lt;- as.data.frame(read_html(list1) %&gt;% html_table(fill=TRUE))</code></p>
  
  <p>and </p>
  
  <p>2.
        <code>list.1.a &lt;-do.call(rbind.data.frame, list1)</code>     </p>
  
  <p>options, but without any good result, receiving error messages such as:</p>
  
  <pre><code>   1. `Error in UseMethod("read_xml") : 
     no applicable method for 'read_xml' applied to an object of class   "c('xml_document', 'xml_node')"
  
     2. Error in xi[[j]] : object of type 'externalptr' is not subsettable `
  </code></pre>
  
  <p>I have tried to find suggestions here but the one I have caught apparently they don't work. I apologize in case I haven't noticed some fitting question/answer.</p>
  
  <p>Again, I'd like to convert this in a data frame to better manage the data and to eventually merge them into another greater data frame through, if possible, a command that could 'run' fast enough (without any <code>Sys.sleep()</code> issue, for instance. 
  Any hint?</p>