Skip to contents

Calculate the global sum of weights

Usage

szero(wt)

Arguments

wt

a weights list—i.e. created by st_weights()

Value

a scalar numeric

Examples

nb <- st_contiguity(guerry)
wt <- st_weights(nb)
szero(wt)
#> [1] 85