Learn R Programming

move (version 4.2.5)

raster: Extract raster topology from DBBMM or dynBGB

Description

Extracts the RasterLayer topology from a DBBMM, DBBMMStack and dynBGB object.

Usage

# S4 method for DBBMM
raster(x)
  # S4 method for DBBMMStack
raster(x)

Value

An object from class RasterLayer is returned.

Arguments

x

a DBBMM, DBBMMStack or dynBGB object

Author

Marco Smolla & Anne Scharf

Details

This function extracts the raster topology (i.e. without values) of the input object. DBBMM, DBBMMStack and dynBGB objects can be directly used in most raster functions but in case a raster with values needs to be extracted as(x,'RasterLayer') can be used.

Examples

Run this code
data(leroydbbmm)
data(dbbmmstack)
raster(leroydbbmm) #returns the raster topology of a DBBMM object
raster(dbbmmstack) # returns the raster topology of a DBBMMStack object

Run the code above in your browser using DataLab