Learn R Programming

geometr (version 0.2.10)

getCols: Get the number of columns of a spatial object.

Description

Get the number of columns of a spatial object.

Usage

getCols(x, ...)

# S4 method for ANY getCols(x)

# S4 method for geom getCols(x)

# S4 method for Raster getCols(x)

# S4 method for matrix getCols(x)

Arguments

x

the object from which to get the number of columns.

...

other arguments.

Value

An integer of the number of columns.

See Also

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

Examples

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

getCols(x = gtRasters$categorical)

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

Run the code above in your browser using DataLab