R/get_PMCtable.R

Defines functions get_PMCtable

Documented in get_PMCtable

get_PMCtable = function(url){
test = getURL(url)
test1 = htmlTreeParse(test,useInternalNodes = T)
test2 = lapply(getNodeSet(test1,"//tr"),function(x){(x)})
table=NULL;for (i in 3:length(test2)){table=rbind(table,getChildrenStrings(test2[[i]]))  }
colnames(table)= as.character(getChildrenStrings(test2[[2]]))
return(table)}

Try the pubmed.mineR package in your browser

Any scripts or data that you put into this service are public.

pubmed.mineR documentation built on Nov. 26, 2021, 5:11 p.m.