Learn R Programming

sdmpredictors (version 0.2.15)

dataset_citations: Generate dataset citations

Description

dataset_citations returns dataset citations as text or as "bibentry" objects.

Usage

dataset_citations(datasets = c(), astext = TRUE)

Value

Either a character vector or a list of "bibentry" objects.

Arguments

datasets

character vector. Code of the datasets. When no datasets are provided (default), then all citations are returned.

astext

logical. When TRUE (default), then citations are returned as text otherwise they are returned as "bibentry" objects.

Details

Note that in order to generate a full list of citations it is preferable to run the layer_citations function.

See Also

layer_citations, bibentry, list_datasets

Examples

Run this code
# print the Bio-ORACLE citation
print(dataset_citations("Bio-ORACLE"))

# print all citations as Bibtex
print(lapply(dataset_citations(astext = FALSE), toBibtex))

Run the code above in your browser using DataLab