get.country {JATSdecoder} | R Documentation |
get.country
Description
Extracts country tag from NISO-JATS coded XML file or text as vector of unique countries.
Usage
get.country(x, unifyCountry = TRUE)
Arguments
x |
a NISO-JATS coded XML file or text. |
unifyCountry |
Logical. If TRUE replaces country name with standardised country name. |
Value
Character vector with the extracted country name/s.
See Also
JATSdecoder
for simultaneous extraction of meta-tags, abstract, sectioned text and reference list.
Examples
x<-"Some text <country>UK</country> some text <country>England</country>
Text<country>Berlin, Germany</country>"
get.country(x)
[Package JATSdecoder version 1.2.0 Index]