face2nb | R Documentation |
Make an spdep-style neighbor list for an icosahedral grid
face2nb(x, queen = FALSE)
x |
A trigrid class object |
queen |
Should he queen neighborhood be returned? |
Neighbor-list object such as thoses defined in spdep.
# calculate a grid
hex <- hexagrid(deg=5)
neighborList <- face2nb(hex)
neighborList
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.