[R] Coverting HTML data into CSV

Rui Barradas ruipbarradas at sapo.pt
Sat Jan 21 13:59:12 CET 2017


You could give us an example of what html you are trying to read.
Follow this example:



url <- 
dat <- readHTMLTable(readLines(url), which=2, header=TRUE, 
stringsAsFactors = FALSE)

Hope this helps,

Rui Barradas

Em 19-01-2017 22:11, El Polidan escreveu:
> Good evening,
> I need to convert and HTML data file into a CSV file.
> I managed to read the html files in R. Any pointers on how to convert  into a readable data frame or csv?
> Thank you.
> Sent from Outlook<http://aka.ms/weboutlook>
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list