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

Description Usage Arguments Value See Also Examples

Description

Get the number of columns of a spatial object.

Usage

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

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

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

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

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

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

getCols(x = gtRasters$categorical)

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

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