[R] how to read a web page and extract an html table?

Duncan Murdoch murdoch at stats.uwo.ca
Tue May 6 17:17:10 CEST 2003


On Tue, 6 May 2003 07:31:29 -0700 (PDT), you wrote in message
<20030506143129.33487.qmail at web12105.mail.yahoo.com>:

>I want to extract the table from the html file. 
>Is there a function html2R, the opposite of R2html? 
>How should I do this? 

I don't think there is anything that does that, but the XML package
(from CRAN) contains a function called htmlTreeParse should get you
partway there.

Duncan Murdoch




More information about the R-help mailing list