format_batch_ama_citation | R Documentation |
Processes multiple BibTeX entries and converts them to AMA (American Medical Association) citation format. Handles article, book, and miscellaneous entry types.
format_batch_ama_citation(bibtex_entries)
bibtex_entries |
A character vector containing one or more BibTeX entries |
If given a single entry, returns a single citation object. If given multiple entries, returns a list of citation objects. Each object is of class c("bibentry", "character", "citation") containing:
string |
The original BibTeX entry |
year |
The publication year as numeric |
citation |
The formatted AMA citation string |
keywords |
A vector of keywords |
entries <- c(
"@article{key1,
author = {Smith J},
title = {First Example},
journal = {Journal One},
year = {2024}
}",
"@book{key2,
author = {Jones K},
title = {Second Example},
publisher = {Publisher},
year = {2024}
}"
)
citations <- format_batch_ama_citation(entries)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.