jst_get_authors: Extract author information

View source: R/authors.R

jst_get_authorsR Documentation

Extract author information

Description

jst_get_authors() extracts information about authors from JSTOR-XML files.

Usage

jst_get_authors(file_path)

Arguments

file_path

A .xml-file from JSTOR containing meta-data.

Details

The function returns a tibble with the following six columns:

  • prefix: in case there was a prefix to the name, like "Dr.".

  • given_name: The author's given name, like "Albert".

  • surname: The author's surname like "Einstein".

  • string_name: In some cases data the name is not available in separate fields, but just as a complete string: "Albert Einstein".

  • suffix: a suffix to the name, like "Jr.".

  • author_number: The authors are enumerated in the order they appear in the data.

Value

A tibble containing the extracted authors. All empty fields are NA_character.

Examples

jst_get_authors(jst_example("article_with_references.xml"))

ropensci/jstor documentation built on Aug. 7, 2023, 12:18 p.m.