Learn R Programming

raster (version 3.6-23)

transpose: Transpose

Description

Transpose a Raster* object

Usage

t(x)

Value

RasterLayer or RasterBrick

Arguments

x

a Raster* object

See Also

transpose: flip, rotate

Examples

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

Run the code above in your browser using DataLab