Description Usage Arguments Value
Get nth-order neighbors in PRIO-GRID, vectorized version.
1 | nth_order_pgneighbors(gid, order, ncol, nrow, include_self = FALSE)
|
gid |
The GIDs to the cells that you would like to find the neighbors of. |
order |
A number, the n-th order. |
ncol |
The number of columns in the grid. |
nrow |
The number of rows in the grid. |
include_self |
Whether or not to also return the center gids |
A dataframe with a list of neighbors for each gid in gids.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.