View source: R/create_raster.R
create_raster | 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 |
|
Raster-class
library(sf) nc <- st_read(system.file("shape/nc.shp", package = "sf")) %>% st_transform(32031) raster <- create_raster(nc, cell_size = 100000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.