Number of columns and rows of a RasterArray or 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 RasterLayer
s.
## S4 method for signature 'XArray' ncol(x) ## S4 method for signature 'XArray' nrow(x)
x |
A |
A numeric
value of the number of columns and rows.
data(coasts) ncol(coasts) nrow(coasts)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.