list_layers: List the current climate layers provided by one or more...

View source: R/list.R

list_layersR Documentation

List the current climate layers provided by one or more datasets

Description

list_layers returns information on the layers of one or more datasets.

Usage

list_layers(datasets=c(), terrestrial = NA, marine = NA, freshwater =
  NA, monthly = TRUE, version = NULL)

Arguments

datasets

character vector. Code of the datasets.

terrestrial

logical. When TRUE (default), then datasets that only have terrestrial data (seamasked) are returned.

marine

logical. When TRUE (default), then datasets that only have marine data (landmasked) are returned.

freshwater

logical. When TRUE, then datasets that only have freshwater data are returned.

monthly

logical. When FALSE, then no monthly layers are returned. All annual and monthly layers are returned by default.

version

numeric vector. When NULL then layers from all versions of datasets are returned (default) else layers are filtered by version number.

Details

By default it returns all layers from all datasets, when both marine and terrestrial are FALSE then only layers from datasets without land- nor seamasks are returned. Layers for paleo and future climatic conditions can be listed with list_layers_paleo and list_layers_future. Available paleo and future climate layers for a current climate layer code can be listed with the functions get_paleo_layers and get_future_layers.

Value

A dataframe with information on the supported current climate layers.

See Also

load_layers, list_datasets, list_layers_future, list_layers_paleo, get_future_layers, get_paleo_layers

Examples

# list the first 5 layers
list_layers()[1:5,]
# list the layercodes all monthly layers from WorldClim
worldclim <- list_layers("WorldClim")
worldclim[!is.na(worldclim$month),]$layer_code
# list layer codes for Bio-ORACLE and MARSPEC
list_layers(c("Bio-ORACLE","MARSPEC"))$layer_code
# list the first 5 terrestrial layers
list_layers(marine=FALSE)[1:5,]
# list the first 5 marine layers
list_layers(terrestrial=FALSE)[1:5,]
# list all annual MARSPEC layers (remove monthly layers)
list_layers("MARSPEC", monthly = FALSE)

sdmpredictors documentation built on Aug. 23, 2023, 5:07 p.m.