| weight_grid | R Documentation | 
Returns a data.table with columns for ID, grid_id, X, Y and weight. By default this object is sorted on the grid_id
weight_grid(data, geom, ID, progress = TRUE)
data | 
 file path or  | 
geom | 
 sf, sfc, SpatialPolygonsDataFrame, or SpatialPolygons object with polygonal geometries  | 
ID | 
 the name of the column providing the unique identified of each geom  | 
progress | 
 if TRUE, display a progress bar during processing  | 
a list(data.table, vector)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.