Hello,
You could give us an example of what html you are trying to read.
Follow this example:
install.packages("XML")
library(XML)
url <-
"http://www.databaseolympics.com/sport/sportevent.htm?enum=110&sp=ATH";
dat <- readHTMLTable(readLines(url), which=2, header=TRUE,
stringsAsFactors = FALS
An example of your data will be very helpful. Saying that you have contents of
an HTML file is not sufficiently descriptive. Note that the instructions
recommend commented, minimal, self-contained, reproducible code. In leu of the
HTML data file and code used to read it, you can use dput() with
2 matches
Mail list logo