title: Reading numerous html tables into R
body: <p>I'm trying to pull html data tables into a single data frame, and I'm looking for an elegant solution. There are 255 tables, and the urls vary by two variable: Year and Aldermanic District.  I know there must be a way to use for loops or something, but I'm stumped.</p>
  
  <p>I have successfully imported the data by reading each table in with a separate line of code, but this results in a line for each table, and again, there are 255 tables.</p>
  
  <pre class="lang-r prettyprint-override"><code>library(XML)
  data &lt;- bind_rows(readHTMLTable("http://assessments.milwaukee.gov/SalesData/2018_RVS_Dist14.htm", skip.rows=1),
                     readHTMLTable("http://assessments.milwaukee.gov/SalesData/2017_RVS_Dist14.htm", skip.rows=1),
                     readHTMLTable("http://assessments.milwaukee.gov/SalesData/2016_RVS_Dist14.htm", skip.rows=1),
                     readHTMLTable("http://assessments.milwaukee.gov/SalesData/2015_RVS_Dist14.htm", skip.rows=1),
  </code></pre>
  
  <p>Ideally, I could use a <code>for</code> loop or something so I wouldn't have to hand code the <code>readHTMLTable</code> function for each table.</p>