Description Usage Arguments Value Examples
The function converts RasterLayer
, RasterStack
and RasterBrick
objects to RasterArray
class objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | as.RasterArray(from)
## S4 method for signature 'RasterLayer'
as.RasterArray(from)
## S4 method for signature 'RasterStack'
as.RasterArray(from)
## S4 method for signature 'RasterBrick'
as.RasterArray(from)
## S4 method for signature 'SpatialPoints'
as.SpatialArray(from)
## S4 method for signature 'SpatialPointsDataFrame'
as.SpatialArray(from)
## S4 method for signature 'SpatialLines'
as.SpatialArray(from)
## S4 method for signature 'SpatialLinesDataFrame'
as.SpatialArray(from)
## S4 method for signature 'SpatialPolygons'
as.SpatialArray(from)
## S4 method for signature 'SpatialPolygonsDataFrame'
as.SpatialArray(from)
|
from |
Object to be converted. |
A RasterArray
class object.
1 2 3 4 | data(dems)
recent <- dems[1]
# convert RasterLayer to RasterArray
ra <- as.RasterArray(recent)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.