Last chance! 50% off unlimited learning
Sale ends in
dim(x)
If x
is a Raster* object
dim(x) <- value
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)
}ncell, extent, res
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)
Run the code above in your browser using DataLab