| headtail | R Documentation | 
Show the head (first values) or tail (last values) of a SpatRaster or of the attributes of a SpatVector.
head(x, ...) 
tail(x, ...) 
| x | SpatRaster or SpatVector | 
| ... | additional arguments passed on to other methods | 
matrix (SpatRaster) or data.frame (SpatVector)
show, geom
r <- rast(nrows=25, ncols=25)
values(r) <- 1:ncell(r)
head(r)
tail(r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.