create_raster {SpatialKDE} | R Documentation |
Create raster of equally spaced cells. The distance between centre of cells
in both x and y dimension is equal to cell_size
.
create_raster(geometry, cell_size, side_offset = 0)
geometry |
|
cell_size |
|
side_offset |
|
library(sf)
nc <- st_read(system.file("shape/nc.shp", package = "sf")) %>% st_transform(32031)
raster <- create_raster(nc, cell_size = 100000)