Description Usage Arguments Value
The native raster::stack function fails if the input layers don't have identical extents. This is a workaround that extends each input layer by a buffer, and then intersects them. It will only work if all input layers share other key spatial characteristics like resolution, projection, etc.
1 | motleyStack(x, intersect = F)
|
x |
Layers to stack, as a vector of raster file paths or a list of raster layers. |
intersect |
Logical: Should only the minimum intersection of the input layers be retained? (If FALSE, the default, layers will be extended to ratain all data.) |
A raster stack.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.