ncol,RasterArray-method: Number of columns and rows of a RasterArray
Description
Unlike the ncol and nrow functions of the raster package (ncell), this function returns the number of columns and rows of the RasterArray container, rather than the dimensions of the contained RasterLayers.
Usage
# S4 method for RasterArray
ncol(x)
# S4 method for RasterArray
nrow(x)
Arguments
x
A RasterLayer class object.
Value
A numeric value of the number of columns and rows.