powered by
RasterArray
SpatialArray
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.
ncol
nrow
ncell
RasterLayer
# S4 method for XArray ncol(x)# S4 method for XArray nrow(x)
# S4 method for XArray nrow(x)
A RasterArray or SpatialArray class object.
A numeric value of the number of columns and rows.
numeric
# NOT RUN { data(coasts) ncol(coasts) nrow(coasts) # }
Run the code above in your browser using DataLab