Learn R Programming

icosa (version 0.12.0)

face2nb: Make an spdep-style neighbor list for an icosahedral grid

Description

Make an spdep-style neighbor list for an icosahedral grid

Usage

face2nb(x, queen = FALSE)

Value

Neighbor-list object such as thoses defined in spdep.

Arguments

x

A trigrid class object

queen

Should he queen neighborhood be returned?

Examples

Run this code
# calculate a grid
hex <- hexagrid(deg=5)
neighborList <- face2nb(hex)
neighborList

Run the code above in your browser using DataLab