View source: R/augmentations.R
jst_unify_journal_id | R Documentation |
This function is a simple wrapper to unify journal ids.
jst_unify_journal_id(meta_data, remove_cols = TRUE)
meta_data |
Data which was processed via |
remove_cols |
Should the original columns be removed after unifying? |
Date on journal ids can be found in three columns:
journal_pub_id
, journal_jcode
and journal_doi
. From my experience,
most of the time the relevant dat ais present in journal_pub_id
or
journal_jcode
, with journal_jcode
being to most common identifier.
This function takes the value from journal_pub_id
, and if it is missing,
that from journal_jcode
. journal_doi
is currently disregarded.
A modified tibble
.
A modified tibble.
article <- jst_get_article(jst_example("article_with_references.xml"))
jst_unify_journal_id(article)
# per default, original columns with data on the journal are removed
library(dplyr)
jst_unify_journal_id(article) %>%
select(contains("journal")) %>%
names()
# you can keep them by setting `remove_cols` to `FALSE`
jst_unify_journal_id(article, remove_cols = FALSE) %>%
select(contains("journal")) %>%
names()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.