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

replacementSingle-spatialstack

Replace layers of a SpatialStack object


Description

The single and double bracket subsetting is identical in the case of SpatialStacks.

Usage

## S4 replacement method for signature 'SpatialStack,character,ANY,VectorSpatialClasses'
x[i, j = NULL, ...] <- value

## S4 replacement method for signature 'SpatialStack,logical,ANY,VectorSpatialClasses'
x[i, j = NULL, ...] <- value

## S4 replacement method for signature 'SpatialStack,numeric,ANY,VectorSpatialClasses'
x[i, j = NULL, ...] <- value

## S4 replacement method for signature 'SpatialStack,character,ANY,SpatialStack'
x[i, j = NULL, ...] <- value

## S4 replacement method for signature 'SpatialStack,logical,ANY,SpatialStack'
x[i, j = NULL, ...] <- value

## S4 replacement method for signature 'SpatialStack,numeric,ANY,SpatialStack'
x[i, j = NULL, ...] <- value

## S4 replacement method for signature 'SpatialStack,character,ANY,ANY'
x[[i, j, ...]] <- value

## S4 replacement method for signature 'SpatialStack,logical,ANY,ANY'
x[[i, j, ...]] <- value

## S4 replacement method for signature 'SpatialStack,numeric,ANY,VectorSpatialClasses'
x[[i, j = NULL, ...]] <- value

Arguments

x

SpatialStack object.

i

subscript of vector-like subsetting.

j

unused.

...

unused..

value

A single Spatial object.

Value

None.

Examples

data(coasts)
spstack <- coasts@stack[1:2]
spstack[1] <- mapedge()

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.