powered by
Transpose a SpatRaster
# S4 method for SpatRaster t(x) # S4 method for SpatRaster transpose(x, filename="", overwrite=FALSE, wopt=list(), ...)
SpatRaster
character. Output filename. Optional
logical. If TRUE, filename is overwritten
TRUE
filename
list. Options for writing files as in writeRaster
writeRaster
additional arguments. None implemented
flip, rotate
# NOT RUN { r <- rast(nrow=18, ncol=36) values(r) <- 1:ncell(r) tr1 <- t(r) tr2 <- transpose(r) ttr <- transpose(tr2) # }
Run the code above in your browser using DataLab