pmcText: Split PMC xml into subsections

Description Usage Arguments Details Value Author(s) Examples

View source: R/pmcText.R

Description

Split PMC xml into a list of subsections, where each subsection is a vector of paragraphs or sentences.

Usage

1
pmcText(doc, sentence = TRUE)

Arguments

doc

a PMC XMLInternalDocument

sentence

split paragraphs into sentences

Details

Subsections may be nested to arbitrary depths and this function will return the entire path to the subsection title as the list name, eg. "Results; Predicted functional roles of GIs; Pathogenicity"

Value

a list of character vectors

Author(s)

Chris Stubben

Examples

1
2
3
4
5
6
## Not run: 
  id <- "PMC2612704"
  doc <- pmcOAI(id)
  txt <-pmcText(doc)

## End(Not run)

cstubben/pmcXML documentation built on May 14, 2019, 12:25 p.m.