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

About this list Date view Thread view Subject view Author view Attachment view

From: Adi Humbert (adrian_humbert@yahoo.com)
Date: Wed 07 May 2003 - 00:31:29 EST


Message-id: <20030506143129.33487.qmail@web12105.mail.yahoo.com>

Hello all,

I want to read a table from a given web page.

If I do something like
> str="http://www...." # this is the web address
> aux1 <- url(str,open="rt")# open connection
> aux2 <- readLines(aux1) # read web page
aux2 contains the html file.

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

Thanks,
Adrian

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:45 EST