szero: Global sum of weights

View source: R/utils-constants.R

szeroR Documentation

Global sum of weights

Description

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)

sfdep documentation built on Sept. 13, 2024, 5:07 p.m.