tileEquivalence: Compute equivalence between tiles and raster cells.

Description Usage Arguments Value Examples

View source: R/tileEquivalence.R

Description

This function computes the equivalence in the index of each raster cell (according to the raster package) and each tile (according to the network event data simulator). Raster cells are counted from left to right starting in the upper left corner by 1. Tiles are counted from left to right starting in the bottom left corner by 0.

Usage

1
tileEquivalence(nrow, ncol, order_by = c("rasterCell"))

Arguments

nrow

Number of rows in the raster.

ncol

Number of columns in the raster.

order_by

Either rasterCell (default) or tile.

Value

A matrix with two named columns (rasterCell and tile) with the equivalence for each raster cell/tile.

Examples

1
2
3
tileEquivalence(4, 3)

tileEquivalence(4, 3, order_by = 'tileID')

MobilePhoneESSnetBigData/destim documentation built on Dec. 7, 2020, 7:35 p.m.