Replace RasterLayers in a RasterArray object and Spatial* objects in a SpatialArray object.
Double bracket '[['
refers to layers' name in the RasterStack
of the RasterArray
and the SpatialStack
of the SpatialArray
. Use single brackets to replace elements based on their position in the RasterArray
/SpatialArray
.
## S4 replacement method for signature 'XArray,ANY,ANY,ANY' x[[i]] <- value ## S4 replacement method for signature 'SpatialArray,ANY,missing,SpatialStack' x[[i]] <- value
x |
|
i |
subscript of layers to replace. |
value |
|
None.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.