doubleBracketReplace: Replace 'RasterLayer's in a 'RasterArray' object and...

Description Usage Arguments Value

Description

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.

Usage

1
2
3
4
5
## S4 replacement method for signature 'XArray,ANY,ANY,ANY'
x[[i]] <- value

## S4 replacement method for signature 'SpatialArray,ANY,missing,SpatialStack'
x[[i]] <- value

Arguments

x

RasterArray or SpatialArray object.

i

subscript of layers to replace.

value

character vector.

Value

None.


chronosphere documentation built on April 19, 2021, 1:07 a.m.