Learn R Programming

via (version 0.2.0)

rastex: Procedural example structure to demonstrate the capabilities of the 'RasterArray' class

Description

Binary versions of SpatRaster-class objects are problematic, this function is used to instantiate a RasterArray example.

Usage

rastex()

Arguments

Value

A two-dimensional RasterArray-class object, with three rows and four columns.

Examples

Run this code
# create example
example <- rastex()

# subset - single bracket
example['b']

# subset - single bracket
example[c(4, 6)]

# subset - double bracket
example[["layer_2"]]

Run the code above in your browser using DataLab