
Summarize remaining cost at specified landscape proportions
Source:R/cost_summary.R
cost_summary.RdReads a Zonation summary_curves.csv file (space-separated),
finds the row closest to each value in landscape_prop, and returns
remaining cost and percentage of maximum cost at those proportions.
Optionally writes the result to dir/performance/cost_summary.csv.
Arguments
- dir
Character. Path to the directory containing the Zonation output folder.
- output_folder_name
Character. Name of the output folder inside
dir. Default is "output".- landscape_prop
Numeric vector. Landscape proportions (rank values) at which to report cost (e.g.
c(0.03, 0.2, 0.5)).- save_output
Logical. If TRUE, the result is written as a CSV to
dir/performance/cost_summary.csv. Default FALSE.
Value
A data frame with columns:
rank- the requested proportionremaining_cost- remaining cost at that rankpercentage- remaining cost as percentage of maximum cost
See also
Other postprocessing:
coverage_distribution(),
feature_curves(),
feature_representation(),
priority_map(),
rank_similarity(),
summary_curves()