sdm_scenario: Creates a hierarchy of scenarios to use with SDM_area

View source: R/sdm_scenario.R

sdm_scenarioR Documentation

Creates a hierarchy of scenarios to use with SDM_area

Description

Creates a hierarchy of scenarios to use with SDM_area

Usage

sdm_scenario(a_scenario = NULL, var_names = NULL)

Arguments

a_scenario

A folder containing a hierarchy of inner folders. Leafs of the folders must contain rasters.

var_names

A list of layer names to keep on rasters. It try to match each variable name (ignoring case and partially matched)

Value

A SDM_scenario object containing the whole hierarchy.

Examples

## Not run: 
a_dir <- tempdir() %>%
 dir_path("scenarios_folder")

system.file("rast_files", package="sdmTools") %>%
 dir_copy(a_dir, overwrite = T)
tmp_scenario <- a_dir %>%
 sdm_scenario()

## End(Not run)

reginaldo-re/sdmTools documentation built on April 25, 2022, 8:08 p.m.