title: Web scraping: Combining tables in for-loop in R
body: <p>I'm using a loop to scrape tables from a website. Can't figure out how to combine the tables into one data frame. The following code works to scrape the relevant information for one page, but I'm not sure how to add the new table to the first one (or a preexisting one). Thanks.</p>
  <pre><code>for (i in 1:10){
    
      link &lt;- paste0(&quot;https://website.com/page&quot;,i)
      remDr$navigate(link)  
  
      # grab the html
      pg &lt;- remDr$getPageSource() %&gt;% .[[1]] %&gt;%
           read_html()
  
      #grab the correct table
      table &lt;- pg %&gt;%
              html_nodes(&quot;table&quot;) %&gt;%
              .[2] %&gt;%
              html_table(fill = TRUE) %&gt;%
              .[[1]] 
      
      # combine tables?
    
  }
  </code></pre>