powered by
Calculate the percentage of non-zero neighbors in a neighbor list.
pct_nonzero(nb)
a scalar double
a neighbor list object
nb <- st_contiguity(guerry) pct_nonzero(nb)
Run the code above in your browser using DataLab