Learn R Programming

move (version 3.2.2)

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)

Arguments

x

a DBBMM, DBBMMStack or dynBGB object

Value

An object from class RasterLayer is returned.

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
# NOT RUN {
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