Learn R Programming

waywiser (version 0.6.2)

ww_make_polygon_neighbors: 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, ...)

Value

An object of class "nb"

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.

Examples

Run this code
ww_make_polygon_neighbors(guerry)

Run the code above in your browser using DataLab