pmc_caption: Split captions into sentences

Description Usage Arguments Value Author(s) Examples

View source: R/pmc_caption.R

Description

Split figure, table and supplementary material captions into sentences

Usage

1

Arguments

doc

xml_document from PubMed Central

Value

a tibble with tag, label, sentence number and text

Author(s)

Chris Stubben

Examples

1
2
3
4
5
6
7
# doc <- pmc_xml("PMC2231364") # OR
doc <- xml2::read_xml(system.file("extdata/PMC2231364.xml",
  package = "tidypmc"
))
x <- pmc_caption(doc)
x
dplyr::filter(x, sentence == 1)

tidypmc documentation built on Aug. 1, 2019, 5:05 p.m.