powered by
Extracts subject tag/s from NISO-JATS coded XML file or text as vector of subjects.
get.subject(x, letter.convert = TRUE, paste = "")
Character vector with extracted subject/s.
a NISO-JATS coded XML file or text.
Logical. If TRUE converts hexadecimal and HTML coded characters to Unicode.
if paste!="" subject list is collapsed to one cell with seperator specified (e.g. paste=";").
JATSdecoder for simultaneous extraction of meta-tags, abstract, sectioned text and reference list.
JATSdecoder
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