Merge Raster* objects to form a new Raster object with a larger spatial extent.
Usage
merge(x, y, ...)
Arguments
x
Raster* object, or a list of Raster* objects
y
Raster* object, or missing
...
Additional Raster* objects and other arguments. See below, under Methods
Value
RasterLayer or RasterBrick object.
Details
The Raster objects must have the same origin and resolution. In areas where the Raster objects overlap, the values of the Raster object that is first in the sequence of arguments will be retained. If you'd rather use the average of cell values, or do another computation, you can use mosaic instead of merge.