ncell | R Documentation |
Get the number of rows, columns, or cells of a Raster* object.
ncol(x)
nrow(x)
ncell(x)
ncol(x, ...) <- value
nrow(x, ...) <- value
x |
a Raster object |
value |
row or column number (integer > 0) |
... |
additional arguments. None implemented |
Integer
dim, extent
, res
r <- raster()
ncell(r)
ncol(r)
nrow(r)
dim(r)
nrow(r) <- 18
ncol(r) <- 36
# equivalent to
dim(r) <- c(18, 36)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.