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)

JosiahParry/sfdep documentation built on Sept. 7, 2024, 6:15 a.m.