Learn R Programming

JATSdecoder (version 1.2.0)

get.country: 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)

Value

Character vector with the extracted country name/s.

Arguments

x

a NISO-JATS coded XML file or text.

unifyCountry

Logical. If TRUE replaces country name with standardised country name.

See Also

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

Examples

Run this code
x<-"Some text UK some text England
    TextBerlin, Germany"
get.country(x)

Run the code above in your browser using DataLab