geo-registry

sf::st_make_grid

How sf runs Create Grid: sf::st_make_grid.

About this implementation
Engine sf
Tool name sf::st_make_grid
Interface r
Implements Create Grid
Documentation Not stated
Effects modifies input: no, network: no
Notes Not stated
Status active

Parameters

Name Type Required Default Choices Note
x any yes Not stated Not stated Not stated
cellsize any no c(diff(st_bbox(x)[c(1, 3)]), diff(st_bbox(x)[c(2, 4)]))/n Not stated Not stated
offset any no st_bbox(x)[c("xmin", "ymin")] Not stated Not stated
n any no c(10, 10) Not stated Not stated
crs any no if (missing(x)) NA_crs_ else st_crs(x) Not stated Not stated
what any no "polygons" Not stated Not stated
square any no TRUE Not stated Not stated
flat_topped any no FALSE Not stated Not stated

How it maps to the operation

Operation parameter Parameter here Note
layer x Not stated
cell_size cellsize Not stated
shape square square = yes; hexagon = no

Differences from the operation

  • The grid starts at the layer's bounding box corner (offset); n gives the number of cells instead of their size.

Harvested by the r-packages harvester from engine version 1.1.3. Names can change when an engine is harvested again.