w_report: Report neighbors for an index in a spatial weights matrix

Description Usage Arguments Value Examples

View source: R/w_report.R

Description

Report neighbors for an index in a spatial weights matrix

Usage

1
w_report(id, w, value = FALSE)

Arguments

id

Index identifier for unit to report neighbors

w

A spatial weights index

value

Whether to report weight value, default is False

Value

A vector of neighbor names or recorded neighbor values

Examples

1
2
3
data(us)
w <- w_borders(data = us, id = name)
w_report(id = "Minnesota", w = w, value = TRUE)

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