Learn R Programming

JATSdecoder (version 1.2.0)

get.keywords: get.keywords

Description

Extracts keyword tag/s from NISO-JATS coded XML file or text as vector of keywords.

Usage

get.keywords(
  x,
  paste = "",
  letter.convert = TRUE,
  include.max = length(keyword)
)

Value

Character vector with extracted keyword/s.

Arguments

x

a NISO-JATS coded XML file or text.

paste

if paste!="" keyword list is collapsed to one cell with seperator specified (e.g. paste=";").

letter.convert

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

include.max

a maximum number of keywords to extract.

See Also

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

Examples

Run this code
x<-"Some text Keyword 1, Keyword 2 some text"
get.keywords(x)
get.keywords(x,paste(", "))

Run the code above in your browser using DataLab