cells_above_threshold: Identify the focal cells exceeding the threshold

View source: R/utils.R

cells_above_thresholdR Documentation

Identify the focal cells exceeding the threshold

Description

Generate a data.frame containing the cell indices of the focal cells surpassing the specified threshold. Additionally, include columns for the coordinates (xy) corresponding to the center of each cell.

Usage

cells_above_threshold(focal, threshold)

Arguments

focal

focal as output from terra::focal().

threshold

lower (numeric) threshold boundary.

Author(s)

Martin Haringa


spatialrisk documentation built on June 8, 2025, 9:40 p.m.