extract_bib_elements: Helper function to parse bibliography elements based on a...

View source: R/references.R

extract_bib_elementsR Documentation

Helper function to parse bibliography elements based on a source

Description

In pgsources, citations are semi-colon separated. This function splits these into individual keys and get the bibliography element from each key.

Usage

extract_bib_elements(citation_liststr, bib_element = "author", ...)

Arguments

citation_liststr

A semi-colon separated list of bibliography keys from pgsources

bib_element

Supports author, journal, year, and title.

...

Value

list with BibEntry-element classes or vectors with character strings

Examples

extract_bib_elements(pgsources$citation_keys[1])

prio-data/priogrid documentation built on June 14, 2025, 11:06 p.m.