Learn R Programming

chronosphere (version 0.3.1)

as.RasterArray: Convert Raster* objects to RasterArrays

Description

The function converts RasterLayer, RasterStack and RasterBrick objects to RasterArray class objects.

Usage

as.RasterArray(from)

# S4 method for RasterLayer as.RasterArray(from)

# S4 method for RasterStack as.RasterArray(from)

# S4 method for RasterBrick as.RasterArray(from)

Arguments

from

Object to be converted.

Value

A RasterArray class object.

Examples

Run this code
# NOT RUN {
data(dems)
recent <- dems[1]
# convert RasterLayer to RasterArray
ra <- as.RasterArray(recent)
# }

Run the code above in your browser using DataLab