Learn R Programming

raster (version 3.5-15)

transpose: Transpose

Description

Transpose a Raster* object

Usage

t(x)

Arguments

x

a Raster* object

Value

RasterLayer or RasterBrick

See Also

transpose: flip, rotate

Examples

Run this code
# NOT RUN {
r <- raster(nrow=18, ncol=36)
values(r) <- 1:ncell(r)
rt <- t(r)
# }

Run the code above in your browser using DataLab