replacementSingle-spatialstack: Replace layers of a SpatialStack object

Description Usage Arguments Value Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## 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

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

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