title: Scraping basketball-reference.com in R (XML package not fully working)
body: <p>I have been scraping various pages of basketball-ref for a while now in R with the XML package using "readHTMLtable" without any issues, but now I have one. When I try to scrape the splits section of a player's page, it only return the first line of the table not all.</p>
  
  <p>for example:</p>
  
  <pre><code>URL="http://www.basketball-reference.com/players/j/jamesle01/splits/"
  tablefromURL = readHTMLTable(URL)
  table = tablefromURL[[1]]
  </code></pre>
  
  <p>this gives me only one row in the table, the first one. I want all the rows however. I think the problem is that there are multiple headers in the table, but I'm not sure how to fix that.</p>
  
  <p>Thanks</p>