adimatt: Number of columns and rows of a "VirtualArray"-derived class...

ncol,VirtualArray-methodR 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 VirtualArray-derived class object.

Value

A numeric value of the number of columns and rows.

Examples

data(paleocoastlines)
ncol(paleocoastlines)
nrow(paleocoastlines)

via documentation built on May 31, 2023, 8:31 p.m.

Related to adimatt in via...