Get the name of future climate layer(s) based on the current climate layer(s)
Source:R/list.R
get_future_layers.Rd
get_future_layers
returns information on the future climate layers for
the matching current climate layers.
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.
Examples
future_layers <- get_future_layers(c("BO_salinity", "BO_sstmean"),
scenario = "B1", year = 2100)
future_layers$layer_code
#> [1] "BO_B1_2100_salinity" "BO_B1_2100_sstmean"