getXY: Get column and row number based on PRIO-GRID ID with ncol and...

Description Usage Arguments Value Examples

View source: R/pgfunctions.R

Description

Get column and row number based on PRIO-GRID ID with ncol and nrow.

Usage

1
getXY(gid, ncol, nrow)

Arguments

gid

An integer cell id.

ncol

The number of columns in the grid.

nrow

The number of rows in the grid.

Value

A vector with components

Examples

1
2
pg <- create_pg_indices(3, 3)
getXY(5, 3, 3)

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