title: How to add variable to data of scraped web tables
body: <p>I want to scrape tables from several pages of UEFA site (<a href="http://www.uefa.com/teamsandplayers/players/player=1900730/profile/index.html" rel="nofollow">like this one</a>) and try to merge it into one dataframe. The dataframe should have all information which is on single player's page (table "MATCH LOG") plus column (variable) with name of a player.</p>
  
  <p>Solution by Chris works fine, but I'd like to grab name of player from the top of a page (selector'.bigTitle') not from the box "GENERAL INFO". </p>
  
  <p>My code that makes the dataframe:</p>
  
  <pre><code>length_links &lt;- length(links)
  all_tables &lt;- vector("list",length_links)
  for(i in seq_len(length_links)){
    page &lt;- html(links[i])
    all_tables[[i]] &lt;- as.data.frame(html_table(page))
  }
  
  do.call(rbind, all_tables)
  </code></pre>
  
  <p>I'd appreciate your help.</p>