Dimensions of a Raster* object
Get or set the number of rows, columns, and layers of a Raster* object. You cannot use this function to set the dimensions of a RasterStack object.
When setting the dimensions, you can provide a row number, or a vector with the row and the column number (for a RasterLayer and a RasterBrick), or a row and column number and the number of layers (only for a RasterBrick)
## S4 method for signature 'BasicRaster' dim(x)
x |
Raster(* object |
Integer or Raster* object
r <- raster() dim(r) dim(r) <- c(18) dim(r) dim(r) <- c(18, 36) dim(r) b <- brick(r) dim(b) dim(b) <- c(10, 10, 5) dim(b)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.