getRows: Get the number of rows of a spatial object.

Description Usage Arguments Value See Also Examples

Description

Get the number of rows of a spatial object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
getRows(x, ...)

## S4 method for signature 'ANY'
getRows(x)

## S4 method for signature 'geom'
getRows(x)

## S4 method for signature 'Raster'
getRows(x)

## S4 method for signature 'matrix'
getRows(x)

Arguments

x

the object from which to get the number of rows.

...

other arguments.

Value

An integer of the number of rows.

See Also

Other getters: getCRS(), getCols(), getExtent(), getFeatures(), getGroups(), getHistory(), getLayers(), getNames(), getPoints(), getRes(), getType(), getWindow()

Examples

1
2
3
4
5
getRows(x = gtGeoms$grid$continuous)

getRows(x = gtRasters$categorical)

getRows(x = matrix(0, 3, 5))

geometr documentation built on Sept. 21, 2021, 1:07 a.m.