ProtConn: input files
get_grid( region = NULL, grid_pol = NULL, grid_id = NULL, hexagonal = TRUE, cellsize = NULL, grid_boundary = FALSE, clip = FALSE, tolerance = NULL )
region | object of class sf, sfc, sfg or SpatialPolygons |
---|---|
grid_pol | object of class sf, sfc, sfg or SpatialPolygons. Grid hexagones or squares. The shapefile must be in a projected coordinate system. |
grid_id | character. Column name of the grid ID. |
hexagonal | logical. If FALSE will be a regular grid of "square". |
cellsize | numeric. Grid area (square kilometers). |
grid_boundary | logical.If TRUE, the Incomplete "hexagons" or "squares" in the boundaries of the region will be discarded |
clip | logical. If TRUE, the new grid will be clipped to the region area. The operation time will be longer the greater the number of vertices in the polygon of the region, if it is a region with many vertices use the argument "tolerance". |
tolerance | numeric. If "clip" is equal to TRUE reduces the number of vertices in the region polygon. |