ncol,VirtualArray-method {via} | R Documentation |
Number of columns and rows of a 'VirtualArray
'-derived class object.
Description
Unlike the ncol
and nrow
functions of the 'terra
' package, this function returns the number of columns and rows of the 'VirtualArray
'-derived container, rather than the dimensions of the contained 'SpatRaster
'-class object.
Usage
## S4 method for signature 'VirtualArray'
ncol(x)
## S4 method for signature 'VirtualArray'
nrow(x)
Arguments
x |
A |
Value
A numeric
value of the number of columns and rows.
Examples
data(paleocoastlines)
ncol(paleocoastlines)
nrow(paleocoastlines)
[Package via version 0.2.0 Index]