Learn R Programming

geometr (version 0.2.5)

getRes: Get the spatial resolution of a spatial object.

Description

Get the spatial resolution of a spatial object.

Usage

# S4 method for ANY
getRes(x)

# S4 method for geom getRes(x, precision = getOption("digits"))

# S4 method for Raster getRes(x, precision = getOption("digits"))

# S4 method for matrix getRes(x)

Arguments

x

the object from which to derive the resolution.

precision

the number of digits to which to round the values.

Value

The resolution of x in x and y dimension.

See Also

Other getters: getCRS(), getExtent(), getFeatures(), getGroups(), getHistory(), getLayer(), getName(), getPoints(), getType(), getWindow()