raster_dim | R Documentation |
Assemble a vector of raster dimension
raster_dim(x)
x |
raster object |
numeric vector of
ncol the number of columns
nrow the number of rows
ncell the number of cells (pixels) in each layer (ncol * nrow)
nlayer the number of layers (bands)
nindex the number of indices (ncell*nlayer)
## Not run: slogo <- stack(system.file("external/rlogo.grd", package="raster")) raster_dim(slog) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.