raster (version 1.1.7)

read: Read values from disk

Description

Read all values from a raster file associated with a Raster* object into memory. In most cases getValues or getValuesBlock is more approprate as readAll will fail when there is no file associated with the RasterLayer (values may only exist on memory).

Usage

readAll(object)

Arguments

object
a Raster* object

See Also

getValues, getValuesBlock, xyValues, cellValues

Examples

Run this code
r <- raster(system.file("external/test.grd", package="raster"))
r <- readAll(r)

Run the code above in your browser using DataCamp Workspace