get.keywords {JATSdecoder}R Documentation

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)
)

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.

Value

Character vector with extracted keyword/s.

See Also

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

Examples

x<-"Some text <kwd>Keyword 1</kwd>, <kwd>Keyword 2</kwd> some text"
get.keywords(x)
get.keywords(x,paste(", "))

[Package JATSdecoder version 1.2.0 Index]