complete_regular_grid {SeaVal} | R Documentation |
Expand Regular Spatial Grid
Description
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.
Usage
complete_regular_grid(dt)
Arguments
dt |
A data table object containing the spatial grid with coordinates. |
Value
A data table with the completed spatial grid. Has the grid-attribute.
Examples
dt = data.table(lon = c(1, 2, 3), lat = c(1, 2, 3))
completed_grid = complete_regular_grid(dt)
print(completed_grid)
[Package SeaVal version 1.2.0 Index]