nth_order_pgneighbors: Get nth-order neighbors in PRIO-GRID, vectorized version.

Description Usage Arguments Value

View source: R/pgfunctions.R

Description

Get nth-order neighbors in PRIO-GRID, vectorized version.

Usage

1
nth_order_pgneighbors(gid, order, ncol, nrow, include_self = FALSE)

Arguments

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

Value

A dataframe with a list of neighbors for each gid in gids.


prio-data/priogrid documentation built on June 28, 2021, 5:34 a.m.