How should i get the scraped output text into table with columns
library(rvest)
base_url <- c("https://www.sec.gov/Archives/edgar/data/1409916/000162828017002570/exhibit211nobilishealthcor.htm",
"https://www.sec.gov/Archives/edgar/data/1320695/000156459018002405/ths-ex211_71.htm")
df <- lapply(base_url,function(u){
html_obj <- read_html(u)
temp <- html_nodes(html_obj,'text')
draft1 <- html_text(temp)
draft1 <- as.data.frame(draft1)
require(data.table)
setDT(draft1)
})
Want the output like below in a table with column names
Sl Subsidiary Region
1. Bay Valley Foods, LLC Delaware limited liability company
2. Sturm Foods Wisconsin corporation
3. S.T. Specialty Foods Minnesota corporation
read_htmlcomes from a package that you haven't specified. the same is true for other functions in that anonymous function... - clemens