Skip to content
Prev 366732 / 398502 Next

Coverting HTML data into CSV

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 = FALSE)
str(dat)


Hope this helps,

Rui Barradas

Em 19-01-2017 22:11, El Polidan escreveu: