The following example illustrates how to find the full formatted citations for the publications used in COMADRE or COMPADRE. This can be useful to find further details of the matrices you may be using in your study, or to provide references for your data e.g. in supplementary information.
The code relies on the package
rcrossref (https://github.com/ropensci/rcrossref) which queries
CrossRef, a Digital Object Identifier (DOI) Registration Agency
of the International DOI Foundation.
To install the
We should then load the required packages like this:
We aim to obtain the full reference and DOI for the matrices for a
set of matrices. In this example we will use the example data available
Here we will create a subset of matrices containing data for species in the Ursidae family:
In this case, our subset contains 3 matrices, and we can examine the
source information for these by asking for the
Journal, publication year (
and DOI (
DOI_ISBN) like this:
We are now ready to obtain the full references for these data. The
rcrossref package has a convenient function,
cr_cn() which obtains citations in various formats from
CrossRef based on the DOIs.
Thus, we can obtain the full references for this subset of the COMADRE database like this:
cr_cn(unique(Comadre$DOI_ISBN), format = "text", style = "apa") #> [] #>  "Hunter, C. M., Caswell, H., Runge, M. C., Regehr, E. V., Amstrup, S. C., & Stirling, I. (2010). Climate change threatens polar bear populations: a stochastic demographic analysis. Ecology, 91(10), 2883–2897. Portico. https://doi.org/10.1890/09-1641.1" #> #> [] #>  "Carroll, C., Noss, R. F., Paquet, P. C., & Schumaker, N. H. (2003). USE OF POPULATION VIABILITY ANALYSIS AND RESERVE SELECTION ALGORITHMS IN REGIONAL CONSERVATION PLANS. Ecological Applications, 13(6), 1773–1789. https://doi.org/10.1890/02-5195" #> #> [] #>  "Wielgus, R. B. (2002). Minimum viable population and reserve sizes for naturally regulated grizzly bears in British Columbia. Biological Conservation, 106(3), 381–388. https://doi.org/10.1016/s0006-3207(01)00265-8"
Various other formats and styles of output are available, see
?rcrossref::cr_cn for details.