Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

doubleBracketReplace

Replace RasterLayers in a RasterArray object and Spatial* objects in a SpatialArray object.


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

## 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

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.