I am trying to retrieve data from " http://ift.tt/1H4OGVR " , for the most powerful brands, when I failed initially to retrieve data using getURL and HtmlParse I understood that the table data is coming from some other link. So to make things easy I downloaded the html page and tried to retrieve the data . I initially tried using
library(XML)
library(RCurl)
library(ggplot2)
forbes <- readHTMLTable("forbes.html",header = TRUE,as.data.frame = TRUE)
forbes
Now when I display forbes I retrieve a list , I had though I would get a dataframe instead.
I checked in the list to find data of top 10 brands in forbes$the_list , but did not find the rest of the data of the rest of the companies i.e beyond top 10 companies.
How can I retrieve the all the tabular data from the forbes page and how can I convert it to data frame for my manipulation.
Please let me know if you need any further info.
Aucun commentaire:
Enregistrer un commentaire