Learn R Programming

sfdep (version 0.2.5)

szero: Global sum of weights

Description

Calculate the global sum of weights

Usage

szero(wt)

Value

a scalar numeric

Arguments

wt

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

Examples

Run this code
nb <- st_contiguity(guerry)
wt <- st_weights(nb)
szero(wt)

Run the code above in your browser using DataLab