Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getRes

Get the spatial resolution of a spatial object.


Description

Get the spatial resolution of a spatial object.

Usage

getRes(x, ...)

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

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

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

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

Arguments

x

the object from which to derive the resolution.

...

other arguments.

Value

A vector of two values of the spatial resolution of x in x and y dimension.

See Also

Examples

getRes(x = gtGeoms$grid$continuous)

getRes(x = gtRasters$categorical)

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

geometr

Generate and Modify Interoperable Geometric Shapes

v0.2.10
GPL-3
Authors
Steffen Ehrmann [aut, cre] (<https://orcid.org/0000-0002-2958-0796>), Dan Sunday [cph] (fast point-in-polygon algorithm.)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.