Calculate the percentage of non-zero neighbors in a neighbor list.
Examples
nb <- st_contiguity(guerry)
pct_nonzero(nb)
#> [1] 5.813149
Calculate the percentage of non-zero neighbors in a neighbor list.
nb <- st_contiguity(guerry)
pct_nonzero(nb)
#> [1] 5.813149