ww_make_polygon_neighbors: Make 'nb' objects from polygon geometries

View source: R/misc.R

ww_make_polygon_neighborsR Documentation

Make 'nb' objects from polygon geometries

Description

This function is an extremely thin wrapper around spdep::poly2nb(), renamed to use the waywiser "ww" prefix.

Usage

ww_make_polygon_neighbors(data, ...)

Arguments

data

An sfc_POLYGON or sfc_MULTIPOLYGON object.

...

Additional arguments passed to spdep::poly2nb().

Details

These functions can be used for geographic or projected coordinate reference systems and expect 2D data.

Value

An object of class "nb"

Examples

ww_make_polygon_neighbors(guerry)


waywiser documentation built on April 16, 2025, 1:10 a.m.