Skip to contents

Wrapper function for spdep::poly2nb.

Usage

sf_to_nb(sf)

Arguments

sf

A simple features object with some geometry.

Value

A neighbourhood list object.

Examples

nb <- sf_to_nb(mw)
#> Error in .class1(object): object 'mw' not found