View source: R/spatial_grids.R
complete_regular_grid | R Documentation |
First checks whether the spatial coordinates in a data table are part of a regular grid.
If they are, the function returns the smallest regular complete grid including all coordinates.
See set_spatial_grid
for more information.
complete_regular_grid(dt)
dt |
A data table object containing the spatial grid with coordinates. |
A data table with the completed spatial grid. Has the grid-attribute.
dt = data.table(lon = c(1, 2, 3), lat = c(1, 2, 3))
completed_grid = complete_regular_grid(dt)
print(completed_grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.