transpose | R Documentation |
Transpose a SpatRaster or SpatVector
## S4 method for signature 'SpatRaster'
t(x)
## S4 method for signature 'SpatVector'
t(x)
## S4 method for signature 'SpatRaster'
trans(x, filename="", ...)
x |
SpatRaster or SpatVector |
filename |
character. Output filename |
... |
additional arguments for writing files as in |
SpatRaster
flip, rotate
r <- rast(nrows=18, ncols=36)
values(r) <- 1:ncell(r)
tr1 <- t(r)
tr2 <- trans(r)
ttr <- trans(tr2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.