Learn R Programming

sfdep (version 0.2.5)

critical_threshold: Identify critical threshold

Description

Identifies the minimum distance in which each observation will have at least one neighbor.

Usage

critical_threshold(geometry, k = 1)

Value

a numeric scalar value.

Arguments

geometry

an sf geometry column

k

the minimum number of neighbors to check for

Examples

Run this code
critical_threshold(sf::st_geometry(guerry))

Run the code above in your browser using DataLab