search for: tab_nod

Displaying 1 result from an estimated 1 matches for "tab_nod".

Did you mean: tab_nodes
2012 Feb 29
2
Using a FOR LOOP to name objects
...ion. As in the following example (which doesn't work quite well) my_list<-c("A","B","C","D","E","F") for(i in c(1:length(my_list))){ url<- "http://finance.yahoo.com" doc = htmlTreeParse(url, useInternalNodes = T) tab_nodes = xpathApply(doc, "//table[@cellpadding = '3']") *my_list[i]*=lapply(tab_nodes, readHTMLTable) #problem is in this line names(*my_list[i]*)=c("Ins","outs") } The problem is that in iteraction #1, I need the info to be stored at an object called &qu...