Re: [R] How to find b entries using xPath?

2009-06-23 Thread Duncan Temple Lang
g...@ucalgary.ca wrote: We got all rows by: library(XML) doc = htmlParse('http://www.statcan.gc.ca/daily-quotidien/090520/t090520b1-eng.htm') rows = xpathSApply(doc, '//table/tbody/tr') The last row is: row_last = rows[15] row_last [[1]] Unsmoothed composite leading indicator 221.8 218.4

[R] How to find b entries using xPath?

2009-06-23 Thread guox
We got all rows by: library(XML) doc = htmlParse('http://www.statcan.gc.ca/daily-quotidien/090520/t090520b1-eng.htm') rows = xpathSApply(doc, '//table/tbody/tr') The last row is: row_last = rows[15] row_last [[1]] Unsmoothed composite leading indicator 221.8 218.4 217.1 211.2 209.4 210.5