| get_neighbours {tmaptools} | R Documentation |
Get neighbours list from spatial objects
Description
Get neighbours list from spatial objects. The output is similar to the function poly2nb of the spdep package, but uses sf instead of sp.
Usage
get_neighbours(x)
Arguments
x |
a shape object, i.e., a |
Value
A list where the items correspond to the features. Each item is a vector of neighbours.
[Package tmaptools version 3.1-1 Index]