pct_nonzero {sfdep}R 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)

[Package sfdep version 0.2.4 Index]