Converts continuous probability predictions into binary
presence/absence based on a specified threshold.
Usage
h3sdm_classify(predictions_sf, threshold)
Arguments
- predictions_sf
An sf object with a 'prediction' column from h3sdm_predict().
- threshold
The optimal probability threshold (e.g., 0.45).
Value
An sf object with the same geometry as predictions_sf
and a new integer column predicted_presence
with values 0 (absence) or 1 (presence).