Learn R Programming

sdmpredictors (version 0.2.15)

layer_citations: Generate citations for all layers

Description

layer_citations returns layer citations as text or as "bibentry" objects.

Usage

layer_citations(layers = c(), astext = TRUE)

Value

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

Arguments

layers

character vector. Code of the layers from past, current and future climate layers. When no layers 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 for some layers multiple references are returned as some of the predictors have been published separately.

See Also

layer_citations, bibentry, list_datasets

Examples

Run this code
# print the citation for the Bio-ORACLE salinity layer
print(layer_citations("BO_salinity"))

# print the citation for a MARSPEC paleo layer
print(layer_citations("MS_biogeo02_aspect_NS_21kya"))

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

Run the code above in your browser using DataLab