splitP: Split paragraphs into sentences

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/splitP.R

Description

Split paragraphs into complete sentences

Usage

1
splitP(z,  split= "[.?]")

Arguments

z

A character vector

split

regular expression used by strsplit for splitting, default period and questions marks

Details

Splits text within paragraph tags into complete sentences by taking care to avoid splitting after genus abbreviations like E. coli or other common abbreviations such as Fig., et al., e.g., i.e., sp., ca., vs., and many others.

Value

A vector of sentences

Author(s)

Chris Stubben

See Also

pmcText

Examples

1
  splitP("See Fig. 1. Or acc no. 1234? E. coli and Y. pestis.")

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