These functions return or set the extreme coordinates of a Raster* object; and return them for Spatial* objects.
xmin(x) <- value
xmax(x) <- value
ymin(x) <- value
ymax(x) <- value
A Raster* object
A new x or y coordinate
a single number
r <- raster(xmn=-0.5, xmx = 9.5, ncols=10)
xmin(r) <- -180
xmax(r) <- 180
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.