Merge Raster* objects to form a new Raster object with a larger spatial extent.
Usage
merge(x, y, ...)
Arguments
x
A Raster* object
y
A Raster* object with the same number of layers as x
...
Additional Raster* objects and other arguments. See below, under Methods
Value
A RasterLayer or RasterBrick object, and, in some cases, the side effect of a new file on disk.
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.