Get (or set) the number of rows, columns, and layers of a Raster* object. You cannot use this function to set the dimentions of a RasterStack object.
Arguments
Value
Integer
Methods
dim(x)
If x is a Raster* object
dim(x) <- valuerll{
x RasterLayer or RasterBrick)
value row number, or row _and_ column number (for a RasterLayer and a RasterBrick);
or a row and column number _and_ the number of layers (only for a RasterBrick)
}