shift(object, ...)
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. "text", "window", or "" (the default, no progress bar)
}flip
, rotate
r <- raster()
r <- shift(r, x=1, y=-1)
Run the code above in your browser using DataLab