raster (version 1.0.4)

shift: Shift

Description

Shift the location of a Raster* object in the x and/or y direction

Usage

shift(object, ...)

Arguments

object
A Raster* object
...
Additional arguments, see Details

Value

  • a Raster* object

Details

The following additional arguments can be passed, to replace default values for this function lll{ x Numeric. The shift in horizontal direction y Numeric. The shift in vertical direction filename Character. Output filename format Character. Output file type. See writeRaster datatype Character. Output data type. See dataType overwrite Logical. If TRUE, "filename" will be overwritten if it exists progress Character. Valid values are "text", "tcltk", "windows" (on that platform only) and "" }

See Also

flip, rotate

Examples

Run this code
r <- raster()
r <- shift(r, x=1, y=-1)

Run the code above in your browser using DataLab