Get the number of columns of a spatial object.
Get the number of columns of a spatial object.
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)
x |
the object from which to get the number of columns. |
... |
other arguments. |
An integer of the number of columns.
getCols(x = gtGeoms$grid$continuous) getCols(x = gtRasters$categorical) getCols(x = matrix(0, 3, 5))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.