get.subject {JATSdecoder}R Documentation

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 = "")

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=";").

Value

Character vector with extracted subject/s.

See Also

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

Examples

x<-"Some text <subject>Some subject</subject> some text"
get.subject(x)
x<-"Some text <subject>Some subject</subject> TEXT ...
<subject>Some other subject</subject> Some text "
get.subject(x)
get.subject(x,paste=", ")

[Package JATSdecoder version 1.2.0 Index]