jst_get_authors()
extracts information about authors from JSTOR-XML files.
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.
Examples
jst_get_authors(jst_example("article_with_references.xml"))
#> # A tibble: 1 × 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