Last chance! 50% off unlimited learning
Sale ends in
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).readAll(object)
getValues
, getValuesBlock
, extract
r <- raster(system.file("external/test.grd", package="raster"))
r <- readAll(r)
Run the code above in your browser using DataLab