powered by
flip(x, direction, ...)
writeRaster
t
rotate
r <- raster(nrow=18, ncol=36) m <- matrix(1:ncell(r), nrow=18) r[] <- as.vector(t(m)) rx <- flip(r, direction='x') r[] <- as.vector(m) ry <- flip(r, direction='y')
Run the code above in your browser using DataLab