search for: xml_document

Displaying 3 results from an estimated 3 matches for "xml_document".

Did you mean: html_document
2017 Jun 22
2
Accessing Pointers
Hello, I am relatively new to R and would like to access the document my pointer is pointing to in the following line of code. Need some help. #install.packages('xml2') library('xml2') pg1 <- read_html("www.msn.com") str(pg1) ptr <- pg1[[2]] [[alternative HTML version deleted]]
2017 Jun 22
0
Accessing Pointers
> On Jun 22, 2017, at 12:52 PM, Lawrence Fomundam <lawfom at gmail.com> wrote: > > Hello, > > I am relatively new to R and would like to access the document my pointer "my pointer"? > is pointing to in the following line of code. Need some help. > > #install.packages('xml2') > library('xml2') > pg1 <-
2018 Jan 31
0
Scraping info from a web site?
...asily Harvest (Scrape) Web Pages".? I tried the following: URL <- 'https://www.battleforthenet.com/scoreboard/' library(rvest) Bftn <- read_html(URL) str(Bftn) List of 2 ?$ node:<externalptr> ?$ doc :<externalptr> ?- attr(*, "class")= chr [1:2] "xml_document" "xml_node" ?????? However, I don't know what to do with <externalptr>. ????? The "Selectorgadget" vignette with rvest suggested selecting what I wanted on the web page and pasting that as an argument into "html_node".? This led me to try the fol...