readAll: Read values from disk

Description Usage Arguments See Also Examples

Description

Read all values from a raster file associated with a Raster* object into memory. This function should normally not be used. In most cases getValues or getValuesBlock is more appropriate as readAll will fail when there is no file associated with the RasterLayer (values may only exist in memory).

Usage

1
readAll(object)

Arguments

object

a Raster* object

See Also

getValues, getValuesBlock, extract

Examples

1
2
r <- raster(system.file("external/test.grd", package="raster"))
r <- readAll(r)

Example output

Loading required package: sp

raster documentation built on Jan. 5, 2021, 3:01 a.m.