title: web scraping data table with r rvest
body: <p>I'm trying to scrape a table from the following website: </p>
  
  <p><a href="http://www.basketball-reference.com/leagues/NBA_2016.html?lid=header_seasons#all_misc_stats" rel="nofollow noreferrer">http://www.basketball-reference.com/leagues/NBA_2016.html?lid=header_seasons#all_misc_stats</a></p>
  
  <p>The table is entitled "Miscellaneous Stats" and the problem is there are multiple tables on this webpage and I don't know if I'm identifying the correct one. I have attempted the following code but all it creates is a blank data frame:</p>
  
  <pre><code>library(rvest)
  adv &lt;- "http://www.basketball-reference.com/leagues/NBA_2016.html?lid=header_seasons#all_misc_stats"
  tmisc &lt;- adv %&gt;%
    read_html() %&gt;%
    html_nodes(xpath = '//*[@id="div_misc_stats"]') %&gt;%
    html_table()
  tmisc &lt;- data.frame(tmisc)
  </code></pre>
  
  <p>I have a feeling I'm missing something trivial but I haven't found this through all my google searches.  Any help is much appreciated. </p>