get.abstract {JATSdecoder} | R Documentation |
get.abstract
Description
Extracts abstract tag from NISO-JATS coded XML file or text as vector of abstracts.
Usage
get.abstract(
x,
sentences = FALSE,
remove.title = TRUE,
letter.convert = TRUE,
cermine = FALSE
)
Arguments
x |
a NISO-JATS coded XML file or text. |
sentences |
Logical. If TRUE abstract is returned as vector of sentences. |
remove.title |
Logical. If TRUE removes section titles in abstract. |
letter.convert |
Logical. If TRUE converts hexadecimal and HTML coded characters to Unicode. |
cermine |
Logical. If TRUE and if 'letter.convert=TRUE' CERMINE specific letter correction is carried out (e.g. inserting of missing operators to statistical results). |
Value
Character. The abstract/s text as floating text or vector of sentences.
See Also
JATSdecoder
for simultaneous extraction of meta-tags, abstract, sectioned text and reference list.
Examples
x<-"Some text <abstract>Some abstract</abstract> some text"
get.abstract(x)
x<-"Some text <abstract>Some abstract</abstract> TEXT <abstract with subsettings>
Some other abstract</abstract> Some text "
get.abstract(x)
[Package JATSdecoder version 1.2.0 Index]