head

0th

Percentile

Show the head or tail of a Raster* object

Show the head (first rows/columns) or tail (last rows/columns) of the cell values of a Raster* object.

Keywords
methods, spatial
Usage
head(x, ...) 
tail(x, ...)
Arguments
x

Raster* object

...

Additional arguments: rows=10 and cols=20, to set the maximum number of rows and columns that are shown. For RasterStack and RasterBrick objects there is an additional argument lyrs

Value

matrix

See Also

getValuesBlock

Aliases
  • head
  • head,RasterLayer-method
  • head,RasterStackBrick-method
  • head,Spatial-method
  • tail
  • tail,RasterLayer-method
  • tail,RasterStackBrick-method
  • tail,Spatial-method
Examples
# NOT RUN {
r <- raster(nrow=25, ncol=25)
r[] = 1:ncell(r)
head(r)
tail(r, cols=10, rows=5)
# }
Documentation reproduced from package raster, version 2.9-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.