Expand returns an RasterLayer with a larger spatial extent.
The output RasterLayer has the extreme minimum and maximum coordinates of the input RasterLayer and input Extent arguments.
Thus, all of the cells of the original raster are included.
Usage
expand(x, y, ...)
Arguments
x
a RasterLayer object
y
Extent object, or any object that is or has an Extent object, or an object from which it can be extracted (such as sp objects)
...
additional arguments. See Details.
Value
A new RasterLayer object, and in some cases the side effect of a new file on disk.
Details
The following additional arguments can be passed, to replace default values for this function
rll{
filename filename for the output RasterLayer. Default=''
overwrite Logical. If TRUE, "filename" will be overwritten if it exists
format Character. Output file type. See writeRasterdatatype Character. Output data type. See dataTypeprogress Character. Valid values are "text", "tcltk", "windows" (on that platform only) and ""
}