list_layers {sdmpredictors} | R 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 |
marine |
logical. When |
freshwater |
logical. When |
monthly |
logical. When |
version |
numeric vector. When |
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)