Learn R Programming

JATSdecoder (version 1.2.0)

get.aff: get.aff

Description

Extracts the affiliation tag information from NISO-JATS coded XML file or text as a vector of affiliations.

Usage

get.aff(x, remove.html = FALSE, letter.convert = TRUE)

Value

Character vector with the extracted affiliation name/s.

Arguments

x

a NISO-JATS coded XML file or text.

remove.html

Logical. If TRUE removes all html tags.

letter.convert

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

See Also

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

Examples

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

Run the code above in your browser using DataLab