I am trying to extract the table that is on the page
Using html_table and rvest, However the first text, first row, is part of the table and apparently is causing conflicts with html_table. I leave the code
#Library's
library(rvest)
library(XML)
url<-"http://www.svs.cl/institucional/mercados/consulta.php?mercado=V&Estado=VI&entidad=RVEMI" #page
url<-read_html(url)
table<-html_nodes(url,"table") #read notes
table<-html_table(table,fill=TRUE) #write like table
ANd the error is
Error in if (length(p) > 1 & maxp * n != sum(unlist(nrows)) & maxp * n != : missing value where TRUE/FALSE needed In addition: Warning message: In lapply(ncols, as.integer) : NAs introduced by coercion
Maybe it could be written using html_text, but I need it in table format.
Any help is appreciated
See Question&Answers more detail:os