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

SpatialArray-class

Virtual Array of Vector Spatial data


Description

Array template for Spatial object

Arguments

stack

A SpatialStack class object.

index

A vector, matrix or array type object. Includes either the indices of layers in the stack, or their names.

dim

A numeric vector. Same as for array, creates proxy procedurally.

Details

The class implements structures to organize Spatial objects that have the same CRS. Subsetting rules were defined using the proxy object in the index slot. See examples for implementations.

The class has two slots: stack: SpatialStack, the actual data. index: A proxy object that represents the organization of the layers.

Value

A SpatialStack class object.

Examples

# data import
  data(dems)
  st <-dems@stack
  ind <- 1:nlayers(st)
  names(ind) <- letters[1:length(ind)]
  ra<- RasterArray(stack=st, index=ind)

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.