Description Usage Arguments Value Examples
View source: R/pubmed_abstract.R
Parse abstract
1 | pubmed_abstract(nodes, sentence = FALSE)
|
nodes |
article node set |
sentence |
split into sentences |
A tibble
1 2 3 4 5 6 7 8 9 | # can't save xml_nodesets in R/data
aq <- pubmed_nodeset(aqc)
x <- pubmed_abstract(aq)
x
mutate(x, text=ifelse(is.na(label), abstract, paste0(label, ": ", abstract))) %>%
group_by(pmid) %>%
summarize(abstract=paste(text, collapse=" ")) %>%
arrange(desc(pmid))
pubmed_abstract(aq, sentence=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.