bib2df | R Documentation |
tibble
The BibTeX file is read, parsed, tidied and written to a tibble
bib2df(file, separate_names = FALSE, merge_lines = FALSE)
file |
character, path or URL to a .bib file. |
separate_names |
logical, should authors' and editors' names be separated into first and given name? |
merge_lines |
logical, set to |
For simplicity bib2df()
unifies the reading, parsing and tidying of a BibTeX file while being aware of a standardized output format, different BibTeX styles and missing values in the BibTeX file.
When separate_names = TRUE
, the respective columns contain a data.frame
for each row. When FALSE
, the respective columns contain character strings.
A tibble
.
Philipp Ottolinger
df2bib
# Read from .bib file:
path <- system.file("extdata", "bib2df_testfile_3.bib", package = "bib2df")
bib <- bib2df(path)
str(bib)
# Read from .bib file and separate authors' and editors' names:
bib <- bib2df(path, separate_names = TRUE)
str(bib)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.