powered by
Calculate the global sum of weights
szero(wt)
a scalar numeric
a weights list—i.e. created by st_weights()
st_weights()
nb <- st_contiguity(guerry) wt <- st_weights(nb) szero(wt)
Run the code above in your browser using DataLab