format_ama_citation | R Documentation |
Converts a BibTeX entry into AMA (American Medical Association) citation format. Handles article, book, and miscellaneous entry types.
format_ama_citation(bibtex_entry)
bibtex_entry |
A character string containing a single BibTeX entry |
An object 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 |
bibtex <- "@article{key,
author = {Smith J and Jones K},
title = {Example Title},
journal = {Journal Name},
year = {2024},
volume = {1},
pages = {1-10}
}"
citation <- format_ama_citation(bibtex)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.