Description Usage Arguments Value Examples
View source: R/tileEquivalence.R
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.
1 | tileEquivalence(nrow, ncol, order_by = c("rasterCell"))
|
nrow |
Number of rows in the raster. |
ncol |
Number of columns in the raster. |
order_by |
Either |
A matrix with two named columns (rasterCell
and
tile
) with the equivalence for each raster cell/tile.
1 2 3 | tileEquivalence(4, 3)
tileEquivalence(4, 3, order_by = 'tileID')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.