get_locked_out_areas {restoptr}R Documentation

Retrieve the locked out areas of a restopt problem.

Description

Retrieve the locked out areas of a restopt problem.

Usage

get_locked_out_areas(problem)

Arguments

problem

restopt_problem() Restoration problem object.

Value

terra::rast() The locked out areas of the restopt problem.

Examples


#' # load data
habitat_data <- rast(
  system.file("extdata", "habitat_hi_res.tif", package = "restoptr")
)

# create problem
problem <- restopt_problem(
       existing_habitat = habitat_data,
       aggregation_factor = 4,
       habitat_threshold = 0.7
)

get_locked_out_areas(problem)



[Package restoptr version 1.0.6 Index]