Learn R Programming

raster (version 2.5-8)

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)
r[] <- 1:ncell(r)
rt <- t(r)
# }

Run the code above in your browser using DataLab