Learn R Programming

JATSdecoder (version 1.2.0)

get.abstract: 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
)

Value

Character. The abstract/s text as floating text or vector of sentences.

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).

See Also

JATSdecoder for simultaneous extraction of meta-tags, abstract, sectioned text and reference list.

Examples

Run this code
x<-"Some text Some abstract some text"
get.abstract(x)
x<-"Some text Some abstract TEXT 
Some other abstract Some text "
get.abstract(x)

Run the code above in your browser using DataLab