powered by
Computes the cell centers and the corresponding cell IDs of a cell mapping grid.
computeGridCenters(lower, upper, blocks)
[numeric or integer] The lower limits per dimension.
numeric
integer
[numeric or integer] The upper limits per dimension.
[integer] The number of blocks per dimension.
[data.frame]. A data.frame, which includes the coordinates of the cell centers, as well as the corresponding cell ID (cell.ID).
data.frame
cell.ID
# NOT RUN { computeGridCenters(lower = -10, upper = 10, blocks = c(10, 5, 8)) # }
Run the code above in your browser using DataLab