readAll

0th

Percentile

Read values from disk

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).

Keywords
classes, spatial
Usage
readAll(object)
Arguments
object

a Raster* object

See Also

getValues, getValuesBlock, extract

Aliases
  • readAll,RasterLayer-method
  • readAll,RasterStack-method
  • readAll,RasterBrick-method
  • readAll
Examples
# NOT RUN {
r <- raster(system.file("external/test.grd", package="raster"))
r <- readAll(r)
# }
Documentation reproduced from package raster, version 3.0-12, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.