transpose: Transpose

Description Usage Arguments Value See Also Examples

Description

Transpose a Raster* object

Usage

1
t(x)

Arguments

x

a Raster* object

Value

RasterLayer or RasterBrick

See Also

transpose: flip, rotate

Examples

1
2
3
r <- raster(nrow=18, ncol=36)
r[] <- 1:ncell(r)
rt <- t(r)

Example output

Loading required package: sp
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files

raster documentation built on May 29, 2017, 3:27 p.m.

Search within the raster package
Search all R packages, documentation and source code