resample,ExpVarRasterList,Raster-method {lulcc} | R Documentation |
Resample maps in ExpVarRasterList object or list
Description
A wrapper function for raster::resample
to resample
raster objects in an ExpVarRasterList object or list.
Usage
## S4 method for signature 'ExpVarRasterList,Raster'
resample(x, y, method = "ngb", ...)
## S4 method for signature 'list,Raster'
resample(x, y, method = "ngb", ...)
Arguments
x |
an ExpVarRasterList object or list of Raster* maps to be resampled |
y |
Raster* object with parameters that |
method |
method used to compute values for the new RasterLayer, should be
|
... |
additional arguments to |
Value
An ExpVarRasterList object or list, depending on x
.
See Also
ExpVarRasterList
, raster::resample
Examples
## Not run:
## Plum Island Ecosystems
## observed data
obs <- ObsLulcRasterStack(x=pie,
pattern="lu",
categories=c(1,2,3),
labels=c("forest","built","other"),
t=c(0,6,14))
## explanatory variables
ef <- ExpVarRasterList(x=pie, pattern="ef")
## resample to ensure maps have same characteristics as observed maps
ef <- resample(x=ef, y=obs, method="ngb")
## End(Not run)
[Package lulcc version 1.0.4 Index]