create_citation {epiparameter} | R Documentation |
Create a citation for an <epiparameter>
object
Description
A helper function when creating an <epiparameter>
object to
create a citation list with sensible defaults, type checking and arguments
to help remember which citation information is accepted in the list.
Usage
create_citation(
author = utils::person(),
year = NA_integer_,
title = NA_character_,
journal = NA_character_,
doi = NA_character_,
pmid = NA_integer_
)
Arguments
author |
Either a |
year |
A |
title |
A |
journal |
A |
doi |
A |
pmid |
A |
Details
This function acts as a wrapper around bibentry()
to create
citations for sources reporting epidemiological parameters.
Value
A <bibentry>
object of the citation
Examples
create_citation(
author = person(given = "John", family = "Smith"),
year = 2002,
title = "COVID-19 incubation period",
journal = "Epi Journal",
doi = "10.19832/j.1366-9516.2012.09147.x"
)