Flip
flip.RdFlip the values of a Raster* object by inverting the order of the rows (direction=y) or the columns direction='x'.
Usage
# S4 method for class 'RasterLayer'
flip(x, direction='y', filename='', ...)
# S4 method for class 'RasterStackBrick'
flip(x, direction='y', filename='', ...)Arguments
- x
Raster* object
- direction
Character. 'y' or 'x'; or 1 (=x) or 2 (=y)
- filename
character. Output filename (optional)
- ...
if
xis a Raster* object, additional arguments as forwriteRaster