Learn R Programming

geometr (version 0.2.10)

getRes: Get the spatial resolution of a spatial object.

Description

Get the spatial resolution of a spatial object.

Usage

getRes(x, ...)

# S4 method for ANY getRes(x)

# S4 method for geom getRes(x)

# S4 method for Raster getRes(x)

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

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

Examples

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

getRes(x = gtRasters$categorical)

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

Run the code above in your browser using DataLab