
Create example hourly pollutant grids
make_grid.RdCreates a regular spatial grid over a user-defined bounding box and exports 24 hourly shapefiles. Each grid cell is assigned a random value, making this function useful for generating example datasets and testing workflows.
Arguments
- ymin
Numeric. Minimum latitude of the grid extent.
- ymax
Numeric. Maximum latitude of the grid extent.
- xmin
Numeric. Minimum longitude of the grid extent.
- xmax
Numeric. Maximum longitude of the grid extent.
- pixelSize
Numeric. Grid cell size in meters.
- dir
Character. Directory where the shapefiles will be written.
- date
Character. Date used in the output filenames (
"YYYY-mm-dd").- values
Optional. Currently unused.
Value
This function is called for its side effect of writing shapefiles to disk. No value is returned.