get.aff {JATSdecoder}R Documentation

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)

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.

Value

Character vector with the extracted affiliation name/s.

See Also

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

Examples

x<-"Some text <aff>Some affiliation</aff> some text"
get.aff(x)
x<-"TEXT <aff>Some affiliation</aff> TEXT <aff>Some other affiliation</aff> TEXT"
get.aff(x)

[Package JATSdecoder version 1.2.0 Index]