get_restorable_habitat {restoptr} | R Documentation |
Retrieve the restorable habitat (aggregated) data.
Description
Retrieve the restorable habitat (aggregated) data.
Usage
get_restorable_habitat(problem)
Arguments
problem |
|
Value
terra::rast()
The restorable habitat (aggregated) data.
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
)
plot(get_restorable_habitat(problem))
[Package restoptr version 1.0.6 Index]