setup_space: Setup spatial bounds of simulation

Description Usage Arguments Details Value

View source: R/setup.R

Description

setup_space creates the spatial grid of the simulation from a user defined shapefile and resolution. If vaccination data are aggregated at a larger scale, pass the id column (i.e. numeric id of the administrative unit) to assign each grid cell to. Alternatively if vaccination data are aggregated at the grid cell level or vaccination is absent, then pass NULL to id_col.

Usage

1
setup_space(shapefile, resolution = 1000, id_col, use_fasterize = FALSE)

Arguments

shapefile

a shapefile (either an sf or sp object) of the area being simulated should be projected in UTM coordinates

resolution

numeric, the resolution in meters

id_col

character, the name of the attribute/column to rasterize the data by, largely for allocating vaccinations

use_fasterize

boolean, if TRUE and class of shapefile is sf will use the fasterize package (if installed)

Details

To do:

Value

raster of simulation bounds rasterized by the id column specify (i.e. each grid cell allocated to a location)


mrajeev08/simrabid documentation built on May 7, 2021, 11:47 a.m.