powered by
Make an spdep-style neighbor list for an icosahedral grid
face2nb(x, queen = FALSE)
Neighbor-list object such as thoses defined in spdep.
A trigrid class object
Should he queen neighborhood be returned?
# calculate a grid hex <- hexagrid(deg=5) neighborList <- face2nb(hex) neighborList
Run the code above in your browser using DataLab