Description Usage Arguments Details Value See Also Examples
Methods to create an ExpVarRasterStack object, which may be created from file or an existing Raster* object.
1 2 3 4 5 6 7 | ExpVarRasterStack(x, ...)
## S4 method for signature 'character'
ExpVarRasterStack(x, ...)
## S4 method for signature 'RasterStack'
ExpVarRasterStack(x, index, ...)
|
x |
Raster* object |
... |
additional arguments to |
index |
data.frame |
Inductive and deductive land use change models predict the allocation of change based on spatially explicit biophysical and socioeconomic covariates. These may be static, such as elevation or geology, or dynamic, such as maps of population density or road networks. To identify whether a covariable is static or dynamic a data frame is supplied to the ExpVarRasterStack constructor function with three columns: the first column specifies the name of the variable, the second column specifies the time point for which it is relevant and the third column specifies whether it is dynamic or not. Data frame rows should correspond to the individual layers of the RasterStack object containing the explanatory variables. If dynamic variables are used it is not necessary to supply a map for each time point in the simulation: during allocation the most recent map will automatically be selected.
An ExpVarRasterStack object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Plum Island Ecosystems
idx <- data.frame(var=paste("ef_", formatC(1:3, width=3, flag=0)),
yr=rep(0,3),
dynamic=rep(FALSE,3))
ef <- ExpVarRasterStack(x=stack(pie[4:6]), index=idx)
## Sibuyan
idx <- data.frame(var=paste("ef_", formatC(1:13, width=3, flag=0)),
yr=rep(0,13),
dynamic=rep(FALSE,13))
ef <- ExpVarRasterStack(x=stack(sibuyan$maps[3:15]), index=idx)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.