I am trying to extract several data from http://www.rsssf.com/tablese/eng2014.html such as the league standings as well as the scores for each round into R.
I know that I am trying to use XML, RCurl package can be used but i am not totally sure of the way to do it.
Referring to this: Scraping html tables into R data frames using the XML package
library(XML)
theurl <- "http://en.wikipedia.org/wiki/Brazil_national_football_team"
tables <- readHTMLTable(theurl)
n.rows <- unlist(lapply(tables, function(t) dim(t)[1]))
the picked table is the longest one on the page
tables[[which.max(n.rows)]]
I still cant get the table on the website. Really appreciate if anyone can help me with this. Thanks!