Learn R Programming

geometr (version 0.2.10)

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

Description

Get the number of rows of a spatial object.

Usage

getRows(x, ...)

# S4 method for ANY getRows(x)

# S4 method for geom getRows(x)

# S4 method for Raster getRows(x)

# S4 method for 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

Run this code
# NOT RUN {
getRows(x = gtGeoms$grid$continuous)

getRows(x = gtRasters$categorical)

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

Run the code above in your browser using DataLab