Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.Raster

Tests if an input is a RasterLayer, RasterBrick, or a RasterStack.


Description

Tests if an input is a RasterLayer, RasterBrick, or a RasterStack.

Usage

is.Raster(x)

Arguments

x

an R Object.

Value

A logical vector.

Author(s)

Jonathan A. Greenberg

Examples

if(require(raster) && require(rgdal))
{
tahoe_highrez <- brick(system.file("external/tahoe_highrez.tif", package="gdalUtils"))
is.Raster(tahoe_highrez)
tahoe_lidar_bareearth <- 
	raster(system.file("external/tahoe_lidar_bareearth.tif", package="gdalUtils"))
is.Raster(tahoe_lidar_bareearth)
is.Raster("character")
}

gdalUtils

Wrappers for the Geospatial Data Abstraction Library (GDAL) Utilities

v2.0.3.2
GPL (>= 2)
Authors
Jonathan Asher Greenberg and Matteo Mattiuzzi
Initial release
2020-01-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.