jst_get_authors: Extract author information

Description Usage Arguments Details Value Examples

View source: R/authors.R

Description

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

Usage

1
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:

Value

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

Examples

1
jst_get_authors(jst_example("article_with_references.xml"))

Example output

# A tibble: 1 x 7
  file_name           prefix given_name surname string_name suffix author_number
  <chr>               <chr>  <chr>      <chr>   <chr>       <chr>          <int>
1 article_with_refer<NA>   R.         Kudo    <NA>        <NA>               1

jstor documentation built on Dec. 11, 2021, 9:56 a.m.