
Number of cells in a 'RasterArray'-class object
Source: R/generics.R, R/RasterArray-xattrib.R
ncell.RdThe method is inherited from the 'SpatRaster' class.
Arguments
- x
a
RasterArrayclass object.
Examples
ex <- rastex()
ncell(ex)
#> [1] 64800