get_neighbors: Get the neighbors of each location in the lattice.

Description Usage Arguments Value

View source: R/get_neighbors.R

Description

Get the neighbors of each location in the lattice.

Usage

1
get_neighbors(lattice, directional = FALSE, grid = NULL)

Arguments

lattice

The simplified igraph object storing the lattice and dependency structure, ordered by location.

directional

Indication of if neighborhood needs to be split into North/South, East/West directions. Defaults to FALSE.

grid

A grid storing the locations of each point in the lattice. Only necessary is direction = TRUE.

Value

A list containting data frames N*N by (max # neighbors) + 1, where the first column is the location id of each location in the lattice.


andeek/conclique documentation built on Dec. 26, 2021, 3:12 a.m.