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

View source: R/grid-graphs.R

face2nbR Documentation

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)

Arguments

x

A trigrid class object

queen

Should he queen neighborhood be returned?

Value

Neighbor-list object such as thoses defined in spdep.

Examples

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

icosa documentation built on Aug. 29, 2025, 5:16 p.m.