is.Raster: Tests if an input is a RasterLayer, RasterBrick, or a...

Description Usage Arguments Value Author(s) Examples

View source: R/is.Raster.R

Description

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

Usage

1

Arguments

x

an R Object.

Value

A logical vector.

Author(s)

Jonathan A. Greenberg

Examples

1
2
3
4
5
6
7
8
9
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")
}

gearslaboratory/gdalUtils documentation built on Feb. 17, 2020, 8:09 a.m.