get_future_layers: Get the name of future climate layer(s) based on the current...

View source: R/list.R

get_future_layersR Documentation

Get the name of future climate layer(s) based on the current climate layer(s)

Description

get_future_layers returns information on the future climate layers for the matching current climate layers.

Usage

get_future_layers(current_layer_codes, scenario, year)

Arguments

current_layer_codes

character vector. Code(s) of the current climate layers either as a character vector or as the dataframe provided by list_layers.

scenario

character vector. Climate change scenario, e.g. "B1", "A1B", "A2".

year

integer. Year for which you want the climate change prediction, e.g. 2100, 2200.

Details

Stops with an exception if no matching future climate layer was found for one or more of the provided current climate layer codes.

Value

A dataframe with information on the future layer(s) matching the provided current layer(s).

See Also

list_layers_future, list_layers, load_layers

Examples

future_layers <- get_future_layers(c("BO_salinity", "BO_sstmean"), 
                                   scenario = "B1", year = 2100)
future_layers$layer_code

samuelbosch/sdmpredictors documentation built on Aug. 24, 2023, 1:05 p.m.