pct_nonzero: Percent Non-zero Neighbors

View source: R/utils-constants.R

pct_nonzeroR Documentation

Percent Non-zero Neighbors

Description

Calculate the percentage of non-zero neighbors in a neighbor list.

Usage

pct_nonzero(nb)

Arguments

nb

a neighbor list object

Value

a scalar double

Examples

nb <- st_contiguity(guerry)
pct_nonzero(nb)

sfdep documentation built on Jan. 11, 2023, 9:08 a.m.