computeGridCenters: Compute the Cell Centers of a Cell Mapping Grid

View source: R/cm_computeGridCenters.R

computeGridCentersR Documentation

Compute the Cell Centers of a Cell Mapping Grid

Description

Computes the cell centers and the corresponding cell IDs of a cell mapping grid.

Usage

computeGridCenters(lower, upper, blocks)

Arguments

lower

[numeric or integer]
The lower limits per dimension.

upper

[numeric or integer]
The upper limits per dimension.

blocks

[integer]
The number of blocks per dimension.

Value

[data.frame].
A data.frame, which includes the coordinates of the cell centers, as well as the corresponding cell ID (cell.ID).

Examples

computeGridCenters(lower = -10, upper = 10, blocks = c(10, 5, 8))


kerschke/flacco documentation built on Dec. 5, 2022, 12:56 a.m.