Description Usage Arguments Value
View source: R/get_neighbors.R
Get the neighbors of each location in the lattice.
1 | get_neighbors(lattice, directional = FALSE, grid = NULL)
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.