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)

JosiahParry/sfdep documentation built on Sept. 7, 2024, 6:15 a.m.