weight_grid: Build Weighting Grid

weight_gridR Documentation

Build Weighting Grid

Description

Returns a data.table with columns for ID, grid_id, X, Y and weight. By default this object is sorted on the grid_id

Usage

weight_grid(data, geom, ID, progress = TRUE)

Arguments

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

Value

a list(data.table, vector)


mikejohnson51/zonal documentation built on Aug. 19, 2024, 12:56 p.m.