Learn R Programming

JATSdecoder (version 1.2.0)

get.subject: get.subject

Description

Extracts subject tag/s from NISO-JATS coded XML file or text as vector of subjects.

Usage

get.subject(x, letter.convert = TRUE, paste = "")

Value

Character vector with extracted subject/s.

Arguments

x

a NISO-JATS coded XML file or text.

letter.convert

Logical. If TRUE converts hexadecimal and HTML coded characters to Unicode.

paste

if paste!="" subject list is collapsed to one cell with seperator specified (e.g. paste=";").

See Also

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

Examples

Run this code
x<-"Some text Some subject some text"
get.subject(x)
x<-"Some text Some subject TEXT ...
Some other subject Some text "
get.subject(x)
get.subject(x,paste=", ")

Run the code above in your browser using DataLab