coordinates: Coordinates of the Extent of a Raster object

Description Usage Arguments Value See Also Examples

Description

These functions return or set the extreme coordinates of a Raster* object; and return them for Spatial* objects.

Usage

1
2
3
4
5
6
7
8
9
xmin(x)
xmax(x)
ymin(x)
ymax(x)

xmin(x) <- value
xmax(x) <- value
ymin(x) <- value
ymax(x) <- value

Arguments

x

A Raster* object

value

A new x or y coordinate

Value

a single number

See Also

extent, dimensions

Examples

1
2
3
4
5
6
7
r <- raster(xmn=-0.5, xmx = 9.5, ncols=10)
xmin(r)
xmax(r)
ymin(r)
ymax(r)
xmin(r) <- -180
xmax(r) <- 180

miraisolutions/raster documentation built on May 30, 2019, 11:41 p.m.