pgneighbors_nnb: Get first order neighbors in PRIO-GRID, vectorized version.

Description Usage Arguments Value

View source: R/pgfunctions.R

Description

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

Usage

1

Arguments

gids

The GIDs to the cells that you would like to find the neighbors of.

ncol

The number of columns in the grid.

nrow

The number of rows in the grid.

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.