w_borders: Compute spatial weights based on shared border lengths

Description Usage Arguments Value Examples

View source: R/w_borders.R

Description

Compute spatial weights based on shared border lengths

Usage

1

Arguments

data

Spatial data of class sf

id

A variable in the data uniquely identifying observations

Value

A matrix consisting of shared border lengths between units

Examples

1
2
data(us)
w <- w_borders(data = us, id = name)

loganstundal/spatialhelpers documentation built on Dec. 21, 2021, 11:46 a.m.